From 1259a21fc0b211f00e8bb422dafb2118caef79ef Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Jul 2010 18:53:26 +0200 Subject: Don't flush with ob flush and check for null disc. --- updater/updatedatabase.php | 6 ++++-- 1 file 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"]); -- cgit v1.2.3-59-g8ed1b