cvs: pear /Console_Table Table.php
| From: | Jan Schneider | Date: | Wed, 22 Feb 2006 22:04:19 +0000 |
| Subject: | cvs: pear /Console_Table Table.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38508@lists.php.net to get a copy of this message | ||
yunosh Wed Feb 22 22:04:19 2006 UTC
Modified files:
/pear/Console_Table Table.php
Log:
Fix reference (Bug 5309).
http://cvs.php.net/viewcvs.cgi/pear/Console_Table/Table.php?r1=1.10&r2=1.11&diff_format=u
Index: pear/Console_Table/Table.php
diff -u pear/Console_Table/Table.php:1.10 pear/Console_Table/Table.php:1.11
--- pear/Console_Table/Table.php:1.10 Wed Feb 22 22:02:42 2006
+++ pear/Console_Table/Table.php Wed Feb 22 22:04:19 2006
@@ -33,7 +33,7 @@
// | Jan Schneider <jan@horde.org> |
// +-----------------------------------------------------------------------+
//
-// $Id: Table.php,v 1.10 2006/02/22 22:02:42 yunosh Exp $
+// $Id: Table.php,v 1.11 2006/02/22 22:04:19 yunosh Exp $
//
// Utility for printing tables from cmdline scripts
//
@@ -491,7 +491,8 @@
// Update max rows
ksort($this->_data);
- $this->_max_rows = end(array_keys($this->_data)) + 1;
+ $keys = array_keys($this->_data);
+ $this->_max_rows = end($keys) + 1;
switch ($this->_defaultAlign) {
case CONSOLE_TABLE_ALIGN_CENTER: $pad = STR_PAD_BOTH; break;