diff options
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 7618a10..8228f38 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -137,7 +137,8 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { static function editforms() { $cid = filter_input(INPUT_POST, "cid"); - if($_POST['edit']=="EDIT" && !empty($cid)) //A bit overdoing with the checks if concert ID is empty both here and in find_cid. But based on that, things are NULL or not. Better ideas? + + if(isset($_POST['edit']) && $_POST['edit']=="EDIT" && !empty($cid)) //A bit overdoing with the checks if concert ID is empty both here and in find_cid. But based on that, things are NULL or not. Better ideas? $c = GiglogAdmin_Concert::find_cid($cid); else $c = GiglogAdmin_Concert::find_cid(''); |