Skip to content

Commit 8c02f30

Browse files
authored
Merge pull request #13 from davidbernard04/master
Fix CTF import and player profile for non-team matches [issue #10]
2 parents 7ff955b + 75336d3 commit 8c02f30

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

html/import/import_playerstuff.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@
130130
$r_ttl = get_dp($q_ttl[col4]);
131131
$r_score = $q_score[col4];
132132

133+
if (!$playerteam) {
134+
$playerteam = 0;
135+
}
136+
133137
// Generate player record
134138
$sql_playerid = " INSERT
135139
INTO uts_player

html/pages/admin/check.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@
304304
`id` int(11) NOT NULL AUTO_INCREMENT,
305305
`mid` int(11) NOT NULL,
306306
`chartid` mediumint(9) NOT NULL,
307-
`title` varchar(50) NOT NULL,
307+
`title` varchar(50) DEFAULT NULL,
308308
`data` blob NOT NULL,
309309
`labels` blob NOT NULL,
310-
`categories` blob NOT NULL,
310+
`categories` blob,
311311
PRIMARY KEY (`id`),
312312
KEY `mid` (`mid`),
313313
KEY `mid_2` (`mid`)

0 commit comments

Comments
 (0)