]> git.mxchange.org Git - mailer.git/blobdiff - inc/module-functions.php
Don't abuse isValidSqlLink() for checking results
[mailer.git] / inc / module-functions.php
index 9665a078b105e4ac6ae462b6d04199602866cc81..72ed10ee4bc14b11496b0e9eab06783e99ac9ffb 100644 (file)
@@ -11,7 +11,7 @@
  * Kurzbeschreibung  : Modulfunktionen                                  *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -80,7 +80,7 @@ function getModuleTitle ($module) {
                        }  else {
                                // No name found
                                $data['title'] = '{%message,UNKNOWN_MODULE_DETECTED_TITLE=' . $module . '%}';
-                               if ((is_resource($result)) && (ifSqlHasZeroNums($result))) {
+                               if ((isValidSqlResult($result)) && (ifSqlHasZeroNumRows($result))) {
                                        // Add module to database and ignore return value
                                        checkModulePermissions($module);
                                } // END - if