summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_import_gigs.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-14 22:42:38 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-14 22:42:38 +0200
commit02caa8be1541d11a65dc00cdea08d1b0bc932ba5 (patch)
tree42cfcdc6a1569b0ee251a8653cb091aa9875004a /includes/admin/views/giglog_import_gigs.php
parent558544fcef3335216d225bb587129a424db8d7af (diff)
downloadgigologadmin-02caa8be1541d11a65dc00cdea08d1b0bc932ba5.tar.gz
gigologadmin-02caa8be1541d11a65dc00cdea08d1b0bc932ba5.tar.bz2
gigologadmin-02caa8be1541d11a65dc00cdea08d1b0bc932ba5.zip
Got rid of find or create for concert and band
Refactored band
Diffstat (limited to 'includes/admin/views/giglog_import_gigs.php')
-rw-r--r--includes/admin/views/giglog_import_gigs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/admin/views/giglog_import_gigs.php b/includes/admin/views/giglog_import_gigs.php
index c2dfd2a..ca1c7b8 100644
--- a/includes/admin/views/giglog_import_gigs.php
+++ b/includes/admin/views/giglog_import_gigs.php
@@ -69,7 +69,7 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) {
//first item in the row should be band $resultArray[0]; second should be venue $resultArray[1]; third should be concert date $resultArray[2];
//fourth item is ticketlink $resultArray[3]; fifth item is eventlink $resultArray[4];
- $newconcert[0] = GiglogAdmin_Band::find_or_create($band,'NO');
+ $newconcert[0] = GiglogAdmin_Band::create($band,'');
if (is_numeric($venue))
$newconcert[1] = $venue;
@@ -80,7 +80,7 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) {
//not sure how to check dates, hopefully manual verification of files will take care of it
- GiglogAdmin_Concert::find_or_create(
+ GiglogAdmin_Concert::create(
$newconcert[0],
$newconcert[1],
$condate,