Commit 24270aed authored by Philipp's avatar Philipp

added safety check for function files() to not crap out on empty bases

parent ce787c9e
......@@ -288,9 +288,10 @@
$fix['desc'] = $d;
if ( $fix['flags'] == 0 ) $res[] = $fix;
}
if ( count( $res ) > 0 ) {
$res = $this->pipe2span( $res, $pipe );
if ( is_array( $res ) ) {
if ( count( $res ) > 0 ) {
$res = $this->pipe2span( $res, $pipe );
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment