X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-guest_add.php;h=916d5be373ad753c33fe4ba9217e2987b5fcb3f0;hb=e71e9e1380d65ccd06beef6fbc594bec10371f5f;hp=0cc22e2bb3d3ec930cf14dd190db8470235b5ced;hpb=27f65d023a3388a8bd85be8ee5991f776f541847;p=mailer.git diff --git a/inc/modules/admin/what-guest_add.php b/inc/modules/admin/what-guest_add.php index 0cc22e2bb3..916d5be373 100644 --- a/inc/modules/admin/what-guest_add.php +++ b/inc/modules/admin/what-guest_add.php @@ -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) {