X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=44e848747020d5efa5fb0dd5cc999045bfc4bde4;hp=2aedbdb8cf4a184929ffdf4ff3e81035af6b5c4e;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hpb=04fd04fb0015f81cec6b77b61bdae1d60ebf02ba diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 2aedbdb8cf..44e8487470 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -80,7 +80,7 @@ function getModuleTitle ($module) { if (empty($data['title'])) { // No name found $data['title'] = sprintf("%s (%s)", getMessage('LANG_UNKNOWN_MODULE'), $module); - if (SQL_NUMROWS($result) == '0') { + if ((is_resource($result)) && (SQL_HASZERONUMS($result))) { // Add module to database $dummy = checkModulePermissions($module); } // END - if @@ -1044,7 +1044,7 @@ function removeReceiver (&$receivers, $key, $userid, $pool_id, $stats_id = '', $ array($rowName, $stats_id, bigintval($userid), $type), __FUNCTION__, __LINE__); // Was it *not* found? - if (SQL_NUMROWS($result) == '0') { + if (SQL_HASZERONUMS($result)) { // So we add one! SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_links` (`%s`, `userid`, `link_type`) VALUES ('%s','%s','%s')", array($rowName, $stats_id, bigintval($userid), $type), __FUNCTION__, __LINE__);