Remove some warnings on user edition 2.0_rc2
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Sun, 11 Jun 2017 11:09:29 +0000 (13:09 +0200)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Sun, 11 Jun 2017 11:09:29 +0000 (13:09 +0200)
webroot/squasher.php

index 02f920774a56113cd8b981f43d2253e208e3bf12..ad61604d15846803ce477803fab75d91ff0d2119 100644 (file)
@@ -192,6 +192,8 @@ if (@$_GET['f']) {
                        if (!$user['enabled'])
                                $user['level'] = 0;
                        $smarty->assign('u', $user);
+               } else {
+                       $smarty->assign('u', NULL);
                }
 
                if ($_SESSION['creds']['user_level'] > 199) {