Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-memedit.php
index a959727f2b3f28cee6902200579bb7e29ba906c6..4bdeedc178eaf1299d408d18d07641d747a5d0d9 100644 (file)
@@ -53,7 +53,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())) {
        // Edit menu entries
        $content['sub'] = $SUB;
        $content['chk'] = $chk;
-       $SW = 2; $cnt = 0; $OUT = '';
+       $SW = 2; $cnt = '0'; $OUT = '';
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -104,7 +104,7 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
        // Del menu entries with or without confirmation
        $content['sub'] = $SUB;
        $content['chk'] = $chk;
-       $SW = 2; $cnt = 0; $OUT = '';
+       $SW = 2; $cnt = '0'; $OUT = '';
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -143,7 +143,7 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
        // Change status (visible / locked)
        $content['sub'] = $SUB;
        $content['chk'] = $chk;
-       $SW = 2; $cnt = 0; $OUT = '';
+       $SW = 2; $cnt = '0'; $OUT = '';
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -260,12 +260,12 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
                // Set sub value
                $content['sub'] = $SUB;
 
-               $SW = 2; $cnt = 0; $OUT = '';
+               $SW = 2; $cnt = '0'; $OUT = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Init navigation
                        $data['navi'] = '';
                        $cnt++;
-                       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=memedit&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) {