X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=5004189a9e7b979ae2312366b749fe2b27e0062e;hb=6bcc8f1ebbd646d15c5905a5cec47d1c1e446238;hp=3269df0ff71dc331767fb95db3b0937ad3bb9e69;hpb=3afdce4fe00b4af570122ce7b8158ced44aec7d3;p=mailer.git diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index 3269df0ff7..5004189a9e 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -47,7 +47,7 @@ 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'))) && (isFormSent())) { +if ((!REQUEST_ISSET_POST('title')) && (isFormSent())) { REQUEST_UNSET_POST('ok'); } // END - if @@ -60,6 +60,7 @@ if (!isFormSent()) { __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']; @@ -69,7 +70,7 @@ if (!isFormSent()) { // Below this menu point should the new be added so we simply increase the sort value by 1 :-) $below[] = $content['sort'] + 1; - } + } // END - if // Free memory SQL_FREERESULT($result);