X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-guestedit.php;h=d7543eaa8ae5c95fc4b371dd07074bdef2194c0a;hb=a41aaa25ffabde1e6ec7f3951288569f4bd827b2;hp=69c5b0a345c5ed7c41dbc807dcbb50780c091d65;hpb=682edce003a1a91f66fb8e2212d7fdb591379843;p=mailer.git diff --git a/inc/modules/admin/what-guestedit.php b/inc/modules/admin/what-guestedit.php index 69c5b0a345..d7543eaa8a 100644 --- a/inc/modules/admin/what-guestedit.php +++ b/inc/modules/admin/what-guestedit.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 * @@ -38,10 +38,10 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // 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 = ''; @@ -179,7 +179,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive() adminProcessMenuEditForm('guest', $subMenu); } else { // Handle weightning - doAdminProcessMenuWeightning('guest'); + doAdminProcessMenuWeightning('guest', $AND); // By default list menus if (empty($subMenu)) { @@ -192,7 +192,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive() } // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Set sub value $content['sub'] = $subMenu; @@ -211,13 +211,9 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive() $NAVI = '{--HIGHER--}'; } elseif ($data['sort'] > 0) { // Anything else between highest and lowest - $NAVI = '{--HIGHER--}/{--LOWER--}'; + $NAVI = '{--HIGHER--}|{--LOWER--}'; } - if (empty($data['action'])) $data['action'] = ' '; - if (empty($data['what'])) $data['what'] = ' '; - if (empty($data['title'])) $data['title'] = ' '; - // Prepapre content $row = array( 'id' => $data['id'], @@ -242,7 +238,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive() loadTemplate('admin_edit_guest_menu', false, $content); } else { // Menu entries are missing... (???) - loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}'); + displayMessage('{--ADMIN_NO_MENUS_FOUND--}'); } }