From 870b37653ccc4f03edb4821f246a2b32333ae99e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 6 Apr 2021 09:58:57 +0200 Subject: Merge changes to concert table update code. Code is now located in the GiglogAdmin_AdminPage::update method. --- includes/admin/views/giglog_admin_page.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 47075fb..bd91299 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -309,10 +309,10 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_photo1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_photo1; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { return ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user - return ('
+ return ('
'); else //not taken by anyone return ('
@@ -324,10 +324,10 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_photo2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_photo2; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { return ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user - return (' + return ('
'); else //not taken by anyone @@ -341,10 +341,10 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev1; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user - return ('
+ return ('
'); else //not taken by anyone return ('
@@ -357,18 +357,16 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev2; - if ($x !='' and $x!=$hf_username) { return ('Taken by '.$x); } + if ($x !='' and $x!=$hf_username) { ('Taken
Taken by '.$x.'
'); } else if ($x==$hf_username) //if current user - return (' + return ('
'); else //not taken by anyone return ('
'); } - - } } } -- cgit v1.2.3