From f2b9e558b1764cb682dcdd44f4bd1605bb2b22f7 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 14 Apr 2021 00:17:57 +0200 Subject: Remove obsolete ref to $wpdb. --- includes/admin/views/giglog_admin_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/admin/views') diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index d3d97c0..7618a10 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -135,7 +135,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { } static function editforms() - { global $wpdb; + { $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? $c = GiglogAdmin_Concert::find_cid($cid); -- cgit v1.2.3