} // 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
// @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++;
$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++;
$content['sub'] = $SUB;
// Init variables
- $OUT = ''; $SW = 2; $cnt = 0;
+ $OUT = ''; $SW = 2; $cnt = '0';
// Process all entries
while ($data = SQL_FETCHARRAY($result)) {
// 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&what=adminedit&sub=".$content['sub']."&act=".$data['action']."&w=".$data['what']."&tid=".($data['sort']+1)."&fid=".$data['sort']."\">{--LOWER--}</a>";
} elseif ($cnt == $max) {