Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.1

Bug #20181 E_NOTICE when using setAlign() but not on first column
Submitted: 2014-01-23 00:20 UTC
From: cweiske Assigned: yunosh
Status: Closed Package: Console_Table (version 1.1.6)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2014-01-23 00:20 UTC] cweiske (Christian Weiske)
Description: ------------ When using > $tbl->setAlign(2, CONSOLE_TABLE_ALIGN_RIGHT); then add data and render it, I get E_NOTICES - because the first two column alignments are not initialized properly. Expected result: ---------------- No notices Actual result: -------------- PHP Notice: Undefined offset: 0 in /usr/share/php/Console/Table.php on line 581 PHP Notice: Undefined offset: 0 in /usr/share/php/Console/Table.php on line 667

Comments

 [2014-01-23 00:20 UTC] cweiske (Christian Weiske)
 [2014-01-23 00:32 UTC] cweiske (Christian Weiske)
 [2014-02-17 20:40 UTC] yunosh (Jan Schneider)
-Status: Open +Status: Closed -Assigned To: +Assigned To: yunosh
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.