Clear checked array before adding all resources - duplicates cause errors

This commit is contained in:
Nathan Gray 2012-12-10 15:44:30 +00:00
parent 3e3dda8149
commit f3f2f4d9ab

View File

@ -295,6 +295,7 @@ class resources_ui
@set_time_limit(0); // switch off the execution time limit, as it's for big selections to small
$query['num_rows'] = -1; // all
$this->bo->get_rows($query,$resources,$readonlys);
$checked = array();
foreach($resources as $resource)
{
$checked[] = $resource['res_id'];