From: Pierre Habouzit (MadCoder Date: Fri, 7 Jan 2005 16:26:52 +0000 (+0000) Subject: oops X-Git-Tag: xorg/old~519 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b86a129613b4eca282f687727b187e16abb42f6d;p=platal.git oops git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-231 --- diff --git a/include/banana.inc.php b/include/banana.inc.php index fdd249c..ec13f1a 100644 --- a/include/banana.inc.php +++ b/include/banana.inc.php @@ -68,11 +68,12 @@ class PlatalBanana extends Banana function run() { - global $banana; + global $banana, $globals; if (Get::get('banana') == 'updateall') { $globals->xdb->execute('UPDATE auth_user_quick SET banana_last={?} WHERE user_id={?}', gmdate('YmdHis'), Session::getInt('uid')); $_SESSION['banana_last'] = time(); + header('Location: ?'); } return Banana::run('PlatalBanana'); }