X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admin_add.php;h=2ce5fe9133c1678fe216ea8af89c4327b5b25212;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hp=272d4bd6e3b7fd72a0227789eee7a18bc3aa665f;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6;p=mailer.git diff --git a/inc/modules/admin/what-admin_add.php b/inc/modules/admin/what-admin_add.php index 272d4bd6e3..2ce5fe9133 100644 --- a/inc/modules/admin/what-admin_add.php +++ b/inc/modules/admin/what-admin_add.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -39,13 +40,13 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point addMenuDescription('admin', __FILE__); // Check if the admin has entered title and what-php file name... -if (((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu')) || (!isPostRequestParameterSet(('descr')))) && (isFormSent())) { +if ((isFormSent()) && ((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu')) || (!isPostRequestParameterSet('descr')))) { unsetPostRequestParameter('ok'); } // END - if @@ -146,9 +147,7 @@ if (!isFormSent()) { } $OUT .= "\n"; } - } - else - { + } else { $OUT .= " \n"; } } @@ -156,8 +155,8 @@ if (!isFormSent()) { // Prepare selections for template $content['below_selection'] = $OUT; - $content['what_selection'] = adminAddMenuSelectionBox('member', 'what' , 'name'); - $content['action_selection'] = adminAddMenuSelectionBox('member', 'action', 'menu'); + $content['what_selection'] = adminAddMenuSelectionBox('admin', 'what' , 'name'); + $content['action_selection'] = adminAddMenuSelectionBox('admin', 'action', 'menu'); // Display form loadTemplate('admin_admin_add', false, $content);