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

Bug #8566 warning message on apply filter with a separator
Submitted: 2006-08-26 18:16 UTC
From: farell Assigned: yunosh
Status: Closed Package: Console_Table (version 1.0.4)
PHP Version: 5.1.4 OS: windows xp
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 + 13 = ?

 
 [2006-08-26 18:16 UTC] farell (Laurent Laville)
Description: ------------ _applyFilters() method do not care of type of data row, and call the user callback everytimes. When a row is defined as separator (CONSOLE_TABLE_HORIZONTAL_RULE) a warning message is raised (see below). To avoid end-user to check such condition in their own callback function, i suggest to add this test into _applyFilters() arround line 369. if ($row_data != CONSOLE_TABLE_HORIZONTAL_RULE) { $this->_data[$row_id][$column] = call_user_func($callback, $row_data[$column]); } Laurent Expected result: ---------------- No warning message Actual result: -------------- Warning: Cannot use a scalar value as an array in [...]\Console\Table.php on line 369

Comments

 [2006-08-28 08:43 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 http://pear.php.net/get/Console_Table