From 9898df3e11c65d0523f96024e4ace110c6b582ea Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 8 Jul 2007 21:56:50 +0000 Subject: [PATCH] backport PHP bu workaround to stable git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@248 7f39781d-f577-437e-ae19-be835c7a54ca --- core/util.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 2dffdd60..c3952b11 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -157,7 +157,9 @@ function add_event_listener($block, $pos=50) { function send_event($event) { global $_event_listeners; - foreach($_event_listeners as $listener) { + $my_event_listeners = $_event_listeners; + ksort($my_event_listeners); + foreach($my_event_listeners as $listener) { $listener->receive_event($event); } }