From f3f2f4d9abf684fa8dba3bc0ac23e80614ff7c08 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 10 Dec 2012 15:44:30 +0000 Subject: [PATCH] Clear checked array before adding all resources - duplicates cause errors --- resources/inc/class.resources_ui.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index 8880744542..bb0e3e1727 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -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'];