]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-mem_add.php
Some rewrites, TODOs handled:
[mailer.git] / inc / modules / admin / what-mem_add.php
index 8a445316b128c52c5b597cb11708795dc2f90da9..5004189a9e7b979ae2312366b749fe2b27e0062e 100644 (file)
@@ -47,11 +47,11 @@ 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'))) && (IS_FORM_SENT())) {
+if ((!REQUEST_ISSET_POST('title')) && (isFormSent())) {
        REQUEST_UNSET_POST('ok');
 } // END - if
 
-if (!IS_FORM_SENT()) {
+if (!isFormSent()) {
        // Create arrays
        $menus = array(); $titles = array(); $below = array();
 
@@ -60,6 +60,7 @@ if (!IS_FORM_SENT()) {
        __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 (!IS_FORM_SENT()) {
 
                        // 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);