Skip to content

Commit ab8707c

Browse files
committed
dispatcher: make sure set_cache is always initialized
1 parent 134da22 commit ab8707c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/tools/system/dispatcher/template/dispatcher.main.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
$sql_search="";
5454
$sql_vals=array();
55+
$set_cache = array();
5556

5657
$search_setid=$_SESSION['dispatcher_setid'];
5758
$search_dest=$_SESSION['dispatcher_dest'];
@@ -62,7 +63,6 @@
6263
$dispatcher_display_only_known = get_settings_value("display_only_known");
6364
switch ($dispatcher_group_mode) {
6465
case "database":
65-
$set_cache = array();
6666
$query = "SELECT " . $dispatcher_group['id'] . " AS id, " .
6767
$dispatcher_group['name'] . " AS name " .
6868
"FROM " . $dispatcher_group['table'];
@@ -84,7 +84,6 @@
8484

8585
case "array":
8686
if ($search_setid !="") {
87-
$set_cache = array();
8887
$set_cache[$search_setid] = $dispatcher_group[$search_setid];
8988
} else {
9089
$set_cache = $dispatcher_group;

0 commit comments

Comments
 (0)