summaryrefslogtreecommitdiffstats
path: root/includes/admin
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-14 00:19:50 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-14 00:19:50 +0200
commit52669bd198671f275902f705d3b630a4b2d7c1b8 (patch)
tree901471458cc429b29f761a7917ad14aa25840cb8 /includes/admin
parentf2b9e558b1764cb682dcdd44f4bd1605bb2b22f7 (diff)
downloadgigologadmin-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.php3
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('');