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']);
}
}
}
- $menus = $dmy; $titles = $dmy2; $below = $dmy3;
+ // Init variables
+ $menus = $dmy;
+ $titles = $dmy2;
+ $below = $dmy3;
// Load sub menus :)
foreach ($menus as $key_main => $value_main) {