Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-refbanner.php
index 7cbaf8b46e41dcb15ad6f95b1a52e7980ac8b22f..71f5ad53c76844f68e79cc77775817ab77c9e67a 100644 (file)
@@ -59,7 +59,7 @@ if (isFormSent()) {
                        // Check if banner is already added
                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE url='%s' LIMIT 1",
                        array(postRequestParameter('url')), __FILE__, __LINE__);
-                       if (SQL_NUMROWS($result) == '0') {
+                       if (SQL_HASZERONUMS($result)) {
                                // Add banner
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (url, alternate, visible)
 VALUES ('%s','%s','%s')",