From: Stéphane Jacob Date: Mon, 27 Jul 2009 19:36:25 +0000 (+0200) Subject: Prevents a Runtime Notice in include/banana/hooks.inc.php. X-Git-Tag: xorg/0.10.1~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d60f6cc6750860f51b902419347723b54c158034;p=platal.git Prevents a Runtime Notice in include/banana/hooks.inc.php. --- diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index f5f608a..ebd913c 100644 --- a/include/banana/hooks.inc.php +++ b/include/banana/hooks.inc.php @@ -324,7 +324,8 @@ class BananaHandler function run_banana(&$page, $class, array $args) { - $banana = new $class(S::user(), $args); + $user = S::user(); + $banana = new $class($user, $args); $page->assign('banana', $banana->run()); $page->addCssInline($banana->css()); $page->addCssLink('banana.css');