From: Platonides Date: Fri, 27 Jan 2012 21:06:00 +0000 (+0000) Subject: The if should check $commentText, not $f, which is always set in this branch. X-Git-Tag: 1.31.0-rc.0~25052 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1a116427969fb391a672faa4e9743cfe63d708b0;p=lhc%2Fweb%2Fwiklou.git The if should check $commentText, not $f, which is always set in this branch. --- diff --git a/maintenance/importImages.php b/maintenance/importImages.php index 7e4d5e230d..bd077ff959 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -206,7 +206,7 @@ if ( $count > 0 ) { echo( " No comment file with extension {$commentExt} found for {$file}, using default comment. " ); } else { $commentText = file_get_contents( $f ); - if ( !$f ) { + if ( !$commentText ) { echo( " Failed to load comment file {$f}, using default comment. " ); } }