always return an array, if an array is given as argument

This commit is contained in:
Ralf Becker 2011-11-10 06:40:55 +00:00
parent 471f471ee9
commit 4703ccbcb3

View File

@ -294,7 +294,7 @@ class calendar_so
*/ */
function max_user_modified($ids, $return_maximum=false) function max_user_modified($ids, $return_maximum=false)
{ {
if (!is_array($ids) || count($ids) == 1) $return_maximum = true; if (!is_array($ids)) $return_maximum = true;
if ($return_maximum) if ($return_maximum)
{ {