From bb353e8e61156b0c9fdab673e2485502a01b8434 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 13 Jun 2021 16:05:48 +0200 Subject: Move method to update Concertlogs to Concertlogs class. --- includes/concert.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'includes/concert.php') diff --git a/includes/concert.php b/includes/concert.php index fcb3934..6d568c8 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -137,29 +137,6 @@ if ( !class_exists('GiglogAdmin_Concert') ) { return ($wpdb->last_error); } - static function update_concertlog($cid, $ph1, $ph2, $rev1, $rev2) - { - global $wpdb; - - $res = $wpdb->update('wpg_concertlogs', array( - 'wpgcl_photo1' => $ph1, - 'wpgcl_photo2' => $ph2, - 'wpgcl_rev1' => $rev1, - 'wpgcl_rev2' => $rev2 - ), - array('wpgcl_concertid' => $cid) - ); - - if ( !$res ) { - // exit( var_dump( $wpdb->last_query ) ); //for onscreen debugging when needed - error_log( __CLASS__ . '::' . __FUNCTION__ . ": {$wpdb->last_error}"); - die; - } - - return ($wpdb->last_error); - - } - public static function find($cname, $venue, $date) { global $wpdb; -- cgit v1.2.3