Bug fix when changing password of user #0
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Fri, 9 Jun 2017 15:22:28 +0000 (17:22 +0200)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Fri, 9 Jun 2017 15:22:28 +0000 (17:22 +0200)
An new user was created.

webroot/squasher.php

index 4f47938f7cca2c812bc62f366936426bb2cc7272..02f920774a56113cd8b981f43d2253e208e3bf12 100644 (file)
@@ -168,7 +168,7 @@ if (@$_GET['f']) {
        $users = $squashweb->get_users($_SESSION['creds']['user_level']);
        $u = @$_REQUEST['u']; // new or edited data
        if ($u) {
-               if ($edited_user) {
+               if ($edited_user != NULL) {
                        $squashweb->update_users($u, $edited_user);
                } else {
                        // Simple admin don't have the user_level <tr>. Just set the value for them now: