Merge branch '1.0-local' into 1.0
This commit is contained in:
commit
d68c01852f
|
@ -294,15 +294,15 @@
|
||||||
/* (1) Check file */
|
/* (1) Check file */
|
||||||
$gstate = $f_gstate->current();
|
$gstate = $f_gstate->current();
|
||||||
|
|
||||||
if( $f_gstate === false )
|
if( !$gstate )
|
||||||
return 127;
|
return 127;
|
||||||
|
|
||||||
/* (2) Remove surrounding spaces */
|
/* (3) Remove surrounding spaces */
|
||||||
$f_gstate = preg_replace('@^\s+@', '', $f_gstate);
|
$gstate = preg_replace('@^\s+@', '', $gstate);
|
||||||
$f_gstate = preg_replace('@\s+$@', '', $f_gstate);
|
$gstate = preg_replace('@\s+$@', '', $gstate);
|
||||||
|
|
||||||
/* (3) Manage error */
|
/* (4) Manage error */
|
||||||
if( strlen($state) < 1 )
|
if( strlen($gstate) < 1 )
|
||||||
return 127;
|
return 127;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue