"resetting array pointer for old code relying on it"

This commit is contained in:
Ralf Becker 2009-02-25 12:59:28 +00:00
parent 7f49b31963
commit 8ff2025051

View File

@ -300,6 +300,7 @@ class categories
if (!is_int($limit)) $limit = (int)$GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
$cats = array_slice($cats,(int)$start,$limit);
}
reset($cats); // some old code (eg. sitemgr) relies on the array-pointer!
return $cats;
}