Fixed reading feature list (etree)

This commit is contained in:
xdrm-brackets 2017-09-27 18:29:18 +02:00
parent a9fa7c5fad
commit f20b69f084
1 changed files with 2 additions and 2 deletions

View File

@ -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 */