diff options
-rw-r--r--[-rwxr-xr-x] | html/import/import_playerstuff.php | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | html/pages/admin/check.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/html/import/import_playerstuff.php b/html/import/import_playerstuff.php index 73714e4..cf80b25 100755..100644 --- 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
diff --git a/html/pages/admin/check.php b/html/pages/admin/check.php index 938d036..125a282 100755..100644 --- a/html/pages/admin/check.php +++ b/html/pages/admin/check.php @@ -304,10 +304,10 @@ CREATE TABLE `uts_chartdata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mid` int(11) NOT NULL, `chartid` mediumint(9) NOT NULL, - `title` varchar(50) NOT NULL, + `title` varchar(50) DEFAULT NULL, `data` blob NOT NULL, `labels` blob NOT NULL, - `categories` blob NOT NULL, + `categories` blob, PRIMARY KEY (`id`), KEY `mid` (`mid`), KEY `mid_2` (`mid`) |