X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-adminedit.php;h=84ccdcfe2b04d73214c6094612b11c49e4100314;hp=9b629ea07e80ceda60d3ac756d55c33d69a76dd2;hb=8fad776382e63b3f73f8dbe289f229d79cfc2c22;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689
diff --git a/inc/modules/admin/what-adminedit.php b/inc/modules/admin/what-adminedit.php
index 9b629ea07e..84ccdcfe2b 100644
--- a/inc/modules/admin/what-adminedit.php
+++ b/inc/modules/admin/what-adminedit.php
@@ -16,7 +16,7 @@
* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -196,7 +196,7 @@ LIMIT 1",
// Run SQL
$result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
- // Do we have entries?
+ // Are there entries?
if (!SQL_HASZERONUMS($result)) {
// Init variables
$OUT = '';
@@ -215,7 +215,7 @@ LIMIT 1",
if (($content['sort'] == '0') || (($content['sort'] == 1) && (!empty($subMenu)))) {
// Is highest position
$content['navi'] = '{--LOWER--}';
- } elseif ($count == SQL_NUMROWS($result)) {
+ } elseif (SQL_NUMROWS($result) == $count) {
// Is lowest position
$content['navi'] = '{--HIGHER--}';
} elseif ($content['sort'] > 0) {
@@ -224,7 +224,7 @@ LIMIT 1",
}
// Add more data to $content
- $content['mode'] = 'admin';
+ $content['do'] = 'admin';
// Load row template and switch colors
$OUT .= loadTemplate('admin_menu_overview_row', true, $content);