cvs: pear /Console_Table Table.php

From: Date: Wed, 22 Feb 2006 22:10:10 +0000
Subject: cvs: pear /Console_Table Table.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38510@lists.php.net to get a copy of this message
yunosh Wed Feb 22 22:10:10 2006 UTC Modified files: /pear/Console_Table Table.php Log: Fix notice if no data available (Bug 5851). http://cvs.php.net/viewcvs.cgi/pear/Console_Table/Table.php?r1=1.11&r2=1.12&diff_format=u Index: pear/Console_Table/Table.php diff -u pear/Console_Table/Table.php:1.11 pear/Console_Table/Table.php:1.12 --- pear/Console_Table/Table.php:1.11 Wed Feb 22 22:04:19 2006 +++ pear/Console_Table/Table.php Wed Feb 22 22:10:10 2006 @@ -33,7 +33,7 @@ // | Jan Schneider <jan@horde.org> | // +-----------------------------------------------------------------------+ // -// $Id: Table.php,v 1.11 2006/02/22 22:04:19 yunosh Exp $ +// $Id: Table.php,v 1.12 2006/02/22 22:10:10 yunosh Exp $ // // Utility for printing tables from cmdline scripts // @@ -377,7 +377,9 @@ { for ($i=0; $i<$this->_max_rows; $i++) { for ($j=0; $j<$this->_max_cols; $j++) { - if (!isset($this->_data[$i][$j]) AND $this->_data[$i] != CONSOLE_TABLE_HORIZONTAL_RULE) { + if (!isset($this->_data[$i][$j]) && + (!isset($this->_data[$i]) || + $this->_data[$i] != CONSOLE_TABLE_HORIZONTAL_RULE)) { $this->_data[$i][$j] = ''; }

« previous php.pear.cvs (#38510) next »