]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-guest_add.php
More fixes from bugtracker issues, thanks to profi-concept
[mailer.git] / inc / modules / admin / what-guest_add.php
index 0cc22e2bb3d3ec930cf14dd190db8470235b5ced..916d5be373ad753c33fe4ba9217e2987b5fcb3f0 100644 (file)
@@ -41,7 +41,8 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 // Check if the admin has entered title and what-php file name...
-if (((empty($_POST['title'])) || (empty($_POST['menu']))) && (isset($_POST['ok'])) {
+if (((empty($_POST['title'])) || (empty($_POST['menu']))) && (isset($_POST['ok']))) {
+       // Abort adding the menu entry
        unset($_POST['ok']);
 }
 
@@ -79,7 +80,10 @@ if (!isset($_POST['ok'])) {
                        }
                }
 
-               $menus = $dmy; $titles = $dmy2; $below = $dmy3;
+               // Init variables
+               $menus  = $dmy;
+               $titles = $dmy2;
+               $below  = $dmy3;
 
                // Load sub menus :)
                foreach ($menus as $key_main => $value_main) {