]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-adminedit.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-adminedit.php
index ed24beee93548c3e32ab912799c8ba52ef6df668..cf97dffe96d73f7041fb640dd5287ef580748fdf 100644 (file)
@@ -52,7 +52,7 @@ if (isGetRequestElementSet('sub')) {
 } // END - if
 
 // Get count of (maybe) selected menu points
-$chk = 0;
+$chk = '0';
 if (isPostRequestElementSet('sel')) $chk = countPostSelection();
 
 // List all menu points and make them editable
@@ -61,7 +61,7 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
        // @TODO Kill all constants in this file
        $content['sub'] = $SUB;
        $content['chk'] = $chk;
-       $cnt = 0; $SW = 2;
+       $cnt = '0'; $SW = 2;
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -112,7 +112,7 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
        $content['chk'] = $chk;
 
        // Del menu entries with or without confirmation
-       $SW = 2; $cnt = 0; $OUT = '';
+       $SW = 2; $cnt = '0'; $OUT = '';
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -240,7 +240,7 @@ WHERE ".$AND." AND id=%s LIMIT 1",
                $content['sub'] = $SUB;
 
                // Init variables
-               $OUT = ''; $SW  = 2; $cnt = 0;
+               $OUT = ''; $SW  = 2; $cnt = '0';
 
                // Process all entries
                while ($data = SQL_FETCHARRAY($result)) {
@@ -249,7 +249,7 @@ WHERE ".$AND." AND id=%s LIMIT 1",
 
                        // Init navigation variable
                        $data['navi'] = '';
-                       if (($data['sort'] == 0) || (($data['sort'] == 1) && (!empty($SUB)))) {
+                       if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($SUB)))) {
                                // Is highest position
                                $data['navi'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=adminedit&amp;sub=".$content['sub']."&amp;act=".$data['action']."&amp;w=".$data['what']."&amp;tid=".($data['sort']+1)."&amp;fid=".$data['sort']."\">{--LOWER--}</a>";
                        } elseif ($cnt == $max) {