X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admin_add.php;h=34a57b82f0deee652cd822957b383def5ce69592;hp=18a9dcfdeeb81cc4ac94964359ca10cf7a652ce9;hb=6bcc8f1ebbd646d15c5905a5cec47d1c1e446238;hpb=2592ef433edd0c7cbde318e76792a521b6ec155e diff --git a/inc/modules/admin/what-admin_add.php b/inc/modules/admin/what-admin_add.php index 18a9dcfdee..34a57b82f0 100644 --- a/inc/modules/admin/what-admin_add.php +++ b/inc/modules/admin/what-admin_add.php @@ -46,9 +46,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { ADD_DESCR('admin', __FILE__); // Check if the admin has entered title and what-php file name... -if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (isFormSent())) { +if (((!REQUEST_ISSET_POST('title')) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (isFormSent())) { REQUEST_UNSET_POST('ok'); -} +} // END - if if (!isFormSent()) { @@ -59,6 +59,7 @@ if (!isFormSent()) $result = SQL_QUERY("SELECT action, title, sort FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort`", __FILE__, __LINE__); if (SQL_NUMROWS($result) > 0) { // Read menu structure + // @TODO Cant this be rewritten? while ($content = SQL_FETCHARRAY($result)) { // Menu actions $menus[] = $content['action'];