diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-04-14 00:19:50 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-04-14 00:19:50 +0200 |
commit | 52669bd198671f275902f705d3b630a4b2d7c1b8 (patch) | |
tree | 901471458cc429b29f761a7917ad14aa25840cb8 /includes/admin | |
parent | f2b9e558b1764cb682dcdd44f4bd1605bb2b22f7 (diff) | |
download | gigologadmin-52669bd198671f275902f705d3b630a4b2d7c1b8.tar.gz gigologadmin-52669bd198671f275902f705d3b630a4b2d7c1b8.tar.bz2 gigologadmin-52669bd198671f275902f705d3b630a4b2d7c1b8.zip |
Check if $_POST member is set before referencing it.
Diffstat (limited to 'includes/admin')
-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(''); |