]> git.defcon.no Git - hermes/blobdiff - api/lib/user_functions.php
Changed sql_dbquery to return result on zero rows. Resulted in some patchings. Added...
[hermes] / api / lib / user_functions.php
index e618d4c5bdb5bd83f143dc8a4ecac65f8ebc0abd..3a53c88582967c099745c638737e799eea5efc6d 100644 (file)
@@ -244,7 +244,7 @@ function list_users ( $search = null )
        $result = sql_dbquery( $config['provision_db'], $query );
        if ( !$result ) return null;
        $list = array();
-       while ( $row = mysql_fetch_row( $result ) )
+       while ( $row = @mysql_fetch_row( $result ) )
        {
                array_push( $list, array( "user" => $row[0], "displayname" => $row[1] ) );
        }