summaryrefslogtreecommitdiff
path: root/html/import
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-02-20 09:20:52 +0100
committerGitHub <noreply@github.com>2018-02-20 09:20:52 +0100
commit8c02f306e3066752b42d2112c2574180f54ff485 (patch)
tree3bff53b77475247a10316b9f43481ff1bb97524b /html/import
parent7ff955bd8fa47729db937f8a5af1e510788a7776 (diff)
parent75336d392c3945097e9b932d8d2074059cdaccf8 (diff)
Merge pull request #13 from davidbernard04/master
Fix CTF import and player profile for non-team matches [issue #10]
Diffstat (limited to 'html/import')
-rwxr-xr-xhtml/import/import_playerstuff.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/import/import_playerstuff.php b/html/import/import_playerstuff.php
index 73714e4..cf80b25 100755
--- a/html/import/import_playerstuff.php
+++ b/html/import/import_playerstuff.php
@@ -130,6 +130,10 @@
$r_ttl = get_dp($q_ttl[col4]);
$r_score = $q_score[col4];
+ if (!$playerteam) {
+ $playerteam = 0;
+ }
+
// Generate player record
$sql_playerid = " INSERT
INTO uts_player