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

Bug #14405 Notice when no data has been added
Submitted: 2008-07-25 12:42 UTC
From: lsolesen Assigned: yunosh
Status: Closed Package: Console_Table (version 1.1.1)
PHP Version: 5.2.6 OS: Xubuntu
Roadmaps: (Not assigned)    

 [2008-07-25 12:42 UTC] lsolesen (Lars Olesen)
Description: ------------ One gets a notice if no data has been added. It should probably just output and empty table or nothing at all. I would say nothing! Test script: --------------- --TEST-- Undefined notice error --FILE-- <?php error_reporting(E_ALL); if (file_exists(dirname(__FILE__) . '/../Table.php')) { require_once dirname(__FILE__) . '/../Table.php'; } else { require_once 'Console/Table.php'; } $table = new Console_Table(); echo $table->getTable(); ?> --EXPECT-- Expected result: ---------------- Nothing Actual result: -------------- Notice: Undefined variable: return in /usr/share/php/Console/Table.php on line 581 Warning: implode(): Bad arguments. in /usr/share/php/Console/Table.php on line 581 +--+ +--+


 [2008-07-27 12:38 UTC] yunosh (Jan Schneider)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at