X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=api%2Flib%2Fphone_functions.php;fp=api%2Flib%2Fphone_functions.php;h=e527aea8c638d7bcd1c4e344adf43b7466508e7d;hb=5564b3420c5316743e1cbc63be96735880d2153e;hp=17fbe10fac8e7ce9e4293eccd3c14df481e03dfa;hpb=be41f0805a67c31020a0910511d15f4c70603f59;p=hermes diff --git a/api/lib/phone_functions.php b/api/lib/phone_functions.php index 17fbe10..e527aea 100644 --- a/api/lib/phone_functions.php +++ b/api/lib/phone_functions.php @@ -23,7 +23,7 @@ function get_user_phones ( $username, $domain ) $result = sql_dbquery( $config['provision_db'], $query ); if ( !$result ) return null; - if (mysql_num_rows($result) < 1 ) return null; + if ( @mysql_num_rows($result) < 1 ) return null; $rows = array(); while ( $row = mysql_fetch_assoc( $result ) ) array_push( $rows, $row['mac'] ); @@ -42,7 +42,7 @@ function get_phone_users ( $macaddress ) $result = sql_dbquery( $config['provision_db'], $query ); if ( !$result ) return null; - if (mysql_num_rows($result) < 1 ) return null; + if ( @mysql_num_rows($result) < 1 ) return null; $rows = array(); while ( $row = mysql_fetch_assoc( $result ) ) { @@ -108,7 +108,7 @@ function list_phones ( $search = null ) $result = sql_dbquery( $config['provision_db'], $query ); if ( !$result ) return null; - if (mysql_num_rows($result) < 1 ) return null; + if ( @mysql_num_rows($result) < 1 ) return null; $rows = array(); while ( $row = mysql_fetch_assoc( $result ) ) {