X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-memedit.php;h=d0d08009fad79f3a317511293b9ed0e724d4fc55;hb=2272afc569a7b308e6c34a2d28457495e6b2483b;hp=ff882da23e1d39230575fe1a50535f5393949dae;hpb=2e715eb7f3f8ca8d259aacb4cbbddde7d9d18e01;p=mailer.git
diff --git a/inc/modules/admin/what-memedit.php b/inc/modules/admin/what-memedit.php
index ff882da23e..d0d08009fa 100644
--- a/inc/modules/admin/what-memedit.php
+++ b/inc/modules/admin/what-memedit.php
@@ -177,7 +177,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
adminProcessMenuEditForm('member', $subMenu);
} else {
// Handle weightning
- doAdminProcessMenuWeightning('guest');
+ doAdminProcessMenuWeightning('member', $AND);
if (!empty($subMenu)) {
// Edit sub menus
@@ -199,20 +199,15 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
$count++;
if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($subMenu)))) {
// Is highest position
- $data['navi'] = '{--LOWER--}';
+ $data['navi'] = '{--LOWER--}';
} elseif ($count == SQL_NUMROWS($result)) {
// Is lowest position
- $data['navi'] = '{--HIGHER--}';
+ $data['navi'] = '{--HIGHER--}';
} elseif ($data['sort'] > 0) {
// Anything else between highest and lowest
- $data['navi'] = '{--HIGHER--}/{--LOWER--}';
+ $data['navi'] = '{--HIGHER--}|{--LOWER--}';
}
- // Fix empty values for Firefox
- if (empty($data['action'])) $data['action'] = ' ';
- if (empty($data['what'])) $data['what'] = ' ';
- if (empty($data['title'])) $data['title'] = ' ';
-
// Add more entries
$data['mode'] = 'mem';
@@ -230,7 +225,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
loadTemplate('admin_member_menu_overview', false, $content);
} else {
// Menu entries are missing... (???)
- loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
+ displayMessage('{--ADMIN_NO_MENUS_FOUND--}');
}
}