]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-refbanner.php
index 99c2d4e6eb468f3da2555930c851050cfe4a5f5e..a157c80fd4bc1232abb7992a50a43261a81cd376 100644 (file)
@@ -45,7 +45,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Init variable
-$SEL = 0;
+$SEL = '0';
 
 // Some sanity-check
 if ((!isPostRequestElementSet('url')) || (!isPostRequestElementSet(('alternate')))) {
@@ -64,7 +64,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(postRequestElement('url')), __FILE__, __LINE__);
-                       if (SQL_NUMROWS($result) == 0) {
+                       if (SQL_NUMROWS($result) == '0') {
                                // Add banner
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (url, alternate, visible)
 VALUES ('%s','%s','%s')",