From 1a116427969fb391a672faa4e9743cfe63d708b0 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 27 Jan 2012 21:06:00 +0000 Subject: [PATCH] The if should check $commentText, not $f, which is always set in this branch. --- maintenance/importImages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. " ); } } -- 2.20.1