X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=UpdateDatabase.php;h=055e81780e9bfb7c6bc7ea4ab7bee49e2510e6a3;hb=5c6078eb38ebbb4228ea72800cdb943047fc2fd0;hp=7b2f633da32bae20f6b1908714f1340acff08ff1;hpb=90dfcb4545f35b27b87d33af1ce31afa794d8fef;p=Pman.Core diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 7b2f633d..055e8178 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -402,6 +402,9 @@ class Pman_Core_UpdateDatabase extends Pman { // send the current file part to the browser $line = trim(fgets($fp, 1024)); + if (empty($line)) { + continue; + } $matches = array(); if (!preg_match('/^ERROR\s+([0-9]+)/', $line, $matches)) { echo "OK - {$line}\n"; flush();