summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2013-10-15 16:36:56 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2013-10-15 16:36:56 +0200
commitab4d3f3b70150d4b7c2622bd5fa6079c49b8d32f (patch)
treec2db788ae4c0cd840d53ca413034269f2c466f39 /lib/exe
parent5da403f17a007f1b202f1c5ea2dbc80ab19d26e8 (diff)
downloadrpg-ab4d3f3b70150d4b7c2622bd5fa6079c49b8d32f.tar.gz
rpg-ab4d3f3b70150d4b7c2622bd5fa6079c49b8d32f.tar.bz2
fix expression passed by reference
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/detail.php4
-rw-r--r--lib/exe/mediamanager.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php
index 7aae08f76..e3c81d877 100644
--- a/lib/exe/detail.php
+++ b/lib/exe/detail.php
@@ -9,7 +9,9 @@ $ID = cleanID($INPUT->str('id'));
// this makes some general infos available as well as the info about the
// "parent" page
$INFO = array_merge(pageinfo(),mediainfo());
-trigger_event('DETAIL_STARTED', $tmp=array());
+
+$tmp = array();
+trigger_event('DETAIL_STARTED', $tmp);
//close session
session_write_close();
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php
index d9e4a6b04..d94a24c74 100644
--- a/lib/exe/mediamanager.php
+++ b/lib/exe/mediamanager.php
@@ -34,7 +34,8 @@
$JSINFO = array('id' => '', 'namespace' => '');
$AUTH = $INFO['perm']; // shortcut for historical reasons
- trigger_event('MEDIAMANAGER_STARTED',$tmp=array());
+ $tmp = array();
+ trigger_event('MEDIAMANAGER_STARTED', $tmp);
session_write_close(); //close session
// do not display the manager if user does not have read access