X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-memedit.php;h=d0d08009fad79f3a317511293b9ed0e724d4fc55;hb=2272afc569a7b308e6c34a2d28457495e6b2483b;hp=b7f294fcc2cd77a1b5329a7bb90ebbaa3b557319;hpb=0575b28ca79d2dc5d1d33aa7f9997053a5fc52c4;p=mailer.git
diff --git a/inc/modules/admin/what-memedit.php b/inc/modules/admin/what-memedit.php
index b7f294fcc2..d0d08009fa 100644
--- a/inc/modules/admin/what-memedit.php
+++ b/inc/modules/admin/what-memedit.php
@@ -16,7 +16,7 @@
* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
// Do we edit/delete/change main menus or sub menus?
$AND = "(`what` = '' OR `what` IS NULL)"; $subMenu = '';
@@ -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
@@ -188,7 +188,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
}
// Some are there?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Set sub value
$content['sub'] = $subMenu;
@@ -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--}');
}
}