Using isset to check for index value. Avoids a PHP notice.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 31 Oct 2010 18:22:37 +0000 (18:22 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 31 Oct 2010 18:22:37 +0000 (18:22 +0000)
includes/filerepo/ForeignAPIRepo.php

index ba57656..c75d15e 100644 (file)
@@ -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 {