From bed73525be5fb9c61117741ed691ae0a02490535 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 31 Oct 2010 18:22:37 +0000 Subject: [PATCH] Using isset to check for index value. Avoids a PHP notice. --- includes/filerepo/ForeignAPIRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index ba57656b67..c75d15eee8 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -185,7 +185,7 @@ class ForeignAPIRepo extends FileRepo { 'prop' => 'imageinfo' ) ); $info = $this->getImageInfo( $data ); - if( $data && $info && $info['thumburl'] ) { + if( $data && $info && isset( $info['thumburl'] ) ) { wfDebug( __METHOD__ . " got remote thumb " . $info['thumburl'] . "\n" ); return $info['thumburl']; } else { -- 2.20.1