]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_admins.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-config_admins.php
index 5d36456f403c3d47398ea4a334e9365e2ede0b1a..46da2c11fc6c29a3900263d501ffeb5f0c939efa 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-$SEL = 0;
+$SEL = '0';
 if (isPostRequestElementSet('sel')) $SEL = countPostSelection();
 
 if ((isPostRequestElementSet('edit')) && ($SEL > 0)) {
@@ -176,7 +176,7 @@ if ((isPostRequestElementSet('edit')) && ($SEL > 0)) {
                        // Main or sub menu selected
                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE admin_id=%s AND action_menu='%s' AND what_menu='%s' LIMIT 1",
                                array(bigintval(postRequestElement('admin_id')), postRequestElement('action_menu'), postRequestElement('what_menu')), __FILE__, __LINE__);
-                       if (SQL_NUMROWS($result) == 0) {
+                       if (SQL_NUMROWS($result) == '0') {
                                // Finally add the new ACL
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_acls` (admin_id, action_menu, what_menu, access_mode)
 VALUES ('%s','%s','%s','%s')",