madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

PHP-Warning: array_multisort(): Argument #1 is expected to be an array #793

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a grid, display it
2. enter text into a filter-box that will give ZERO results
3. click on a column to sort it

What is the expected output? What do you see instead?
Warning: array_multisort(): Argument #1 is expected to be an array or a sort 
flag in (...)/Bvb/Grid/Source/Array.php on line 365 

Please insert the appropriate values;
                    Zend Framework version: 1.11.11
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
                          Operating system: Linux
                               PHP Version: 5.3.6
               Database Server and version: Mysql 5
Source Adatapter:

Please provide any additional information below.
adding "if (@is_array($result))" in line 364 will fix it

Original issue reported on code.google.com by buegelfa...@gmail.com on 2 Dec 2011 at 11:12

GoogleCodeExporter commented 9 years ago
Hi,

This issue was fixed initializing $result variable. Check last trunk - r1898.

Thanks.

Ivo Monteiro

Original comment by ivomonte...@gmail.com on 10 Mar 2012 at 4:29