mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
"resetting array pointer for old code relying on it"
This commit is contained in:
parent
7f49b31963
commit
8ff2025051
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user