[Bug fix] Unreadable files
-
Hiya,
Very useful tool. I found a small bug, please find the fix for it below. Would be great if you could incorporate it into the codebase.
Find line 796:
$contents = file( $this->path . $file ); foreach ( $contents as $n => $line ) {
Replace with:
$contents = is_readable( $this->path . $file ) ? @file( $this->path . $file ) : false; if( $contents !== false ) { foreach ( $contents as $n => $line ) {
Obviously the newly added
if()
will still need to be closed round line 829 and you may want to adjust the indentation of the foreach content ??Hope this helps!
Smile,
Juliette
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Bug fix] Unreadable files’ is closed to new replies.