aboutsummaryrefslogtreecommitdiffstats
path: root/updater/updatedatabase.php
diff options
context:
space:
mode:
Diffstat (limited to 'updater/updatedatabase.php')
-rw-r--r--updater/updatedatabase.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/updater/updatedatabase.php b/updater/updatedatabase.php
index fab9801..374254a 100644
--- a/updater/updatedatabase.php
+++ b/updater/updatedatabase.php
@@ -65,7 +65,6 @@ function processFile($file)
global $addCount;
global $updateCount;
- ob_flush();
flush();
$format = getFormat($file);
@@ -122,7 +121,10 @@ function processFile($file)
$discString = $tags["disc"];
$discString = explode("/", $discString);
$disc = nullInt((int)$discString[0]);
- $discTotal = nullInt((int)$discString[1]);
+ if (count($discString) < 2)
+ $discTotal = "NULL";
+ else
+ $discTotal = nullInt((int)$discString[1]);
$genre = nullString($tags["genre"]);
$bpm = nullInt((int)$tags["bpm"]);
$composer = nullString($tags["composer"]);