diff --git a/lib/api/source/fetch.php b/lib/api/source/fetch.php index 065750e..71269c2 100755 --- a/lib/api/source/fetch.php +++ b/lib/api/source/fetch.php @@ -13,10 +13,10 @@ while( !$f->eof() ){ /* (1) Try to parse each line */ - $etree = $f->fgets(); + $etree = trim($f->fgets(), "\n"); /* (2) Manage error */ - if( is_null($etree) ) + if( is_null($etree) || strlen($etree) == 0 ) continue; /* (3) Add entry to log */