From: Derk-Jan Hartman Date: Sun, 31 Oct 2010 18:22:37 +0000 (+0000) Subject: Using isset to check for index value. Avoids a PHP notice. X-Git-Tag: 1.31.0-rc.0~34183 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=bed73525be5fb9c61117741ed691ae0a02490535;p=lhc%2Fweb%2Fwiklou.git Using isset to check for index value. Avoids a PHP notice. --- 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 {