svn: /pear/pear-core/trunk/PEAR/Frontend/ CLI.php

From: Date: Sat, 27 Mar 2010 16:16:25 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/Frontend/ CLI.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9336@lists.php.net to get a copy of this message
dufuz Sat, 27 Mar 2010 16:16:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296938 Log: Bug #16864 "pear list-upgrades -i" issues E_WARNINGS [patch by rquadling (Richard Quadling)] Bug: http://pear.php.net/bugs/16864 (unknown) Changed paths: U pear/pear-core/trunk/PEAR/Frontend/CLI.php Modified: pear/pear-core/trunk/PEAR/Frontend/CLI.php =================================================================== --- pear/pear-core/trunk/PEAR/Frontend/CLI.php 2010-03-27 15:44:02 UTC (rev 296937) +++ pear/pear-core/trunk/PEAR/Frontend/CLI.php 2010-03-27 16:16:25 UTC (rev 296938) @@ -512,9 +512,13 @@ $opts); } - foreach($data['data'] as $row) { - $this->_tableRow($row, null, $opts); - } + if (is_array($data['data'])) { + foreach($data['data'] as $row) { + $this->_tableRow($row, null, $opts); + } + } else { + $this->_tableRow(array($data['data']), null, $opts); + } $this->_endTable(); } else { $this->_displayLine($data);

« previous php.pear.core (#9336) next »