From: <lei...@us...> - 2009-02-27 11:02:58
|
Author: leithoff Date: Fri Feb 27 11:23:51 2009 New Revision: 26585 URL: http://www.egroupware.org/viewvc?rev=3D26585&view=3Drev Log: handling an error on unset props-array Modified: branches/1.6/filemanager/inc/class.filemanager_ui.inc.php Modified: branches/1.6/filemanager/inc/class.filemanager_ui.inc.php URL: http://www.egroupware.org/viewvc/branches/1.6/filemanager/inc/class.fi= lemanager_ui.inc.php?rev=3D26585&r1=3D26584&r2=3D26585&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- branches/1.6/filemanager/inc/class.filemanager_ui.inc.php (original) +++ branches/1.6/filemanager/inc/class.filemanager_ui.inc.php Fri Feb 27 11= :23:51 2009 @@ -532,6 +532,7 @@ { unset($row); // fixes a weird problem with php5.1, does NOT happen wit= h php5.2 $row =3D& $rows[$path2n[$path]]; + if ( !is_array($props) ) continue; foreach($props as $prop) { if (!$all_cfs && $prop['name'][0] =3D=3D '#' && !in_array($prop['name= '],$cols_to_show)) continue; |