Default value in get_users(): Reduce warnings
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Fri, 9 Jun 2017 14:28:42 +0000 (16:28 +0200)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Fri, 9 Jun 2017 14:28:42 +0000 (16:28 +0200)
webroot/squasher.class.php

index 3f357ab6d4a06b26d38d3678f40756dc64707368..f59304e6b658f4638cc7d243fb1bead5660b6bf8 100644 (file)
@@ -126,6 +126,7 @@ function get_users($user_level) {
        $q .= " ORDER BY user_name ASC";
        $r = $this->db->query($q);
 
+       $return = array();
        while ($o = mysqli_fetch_object($r)) {
                $return[$o->user_id]['id']              = $o->user_id;
                $return[$o->user_id]['name']    = $o->user_name;