From: Jens Frank Date: Sun, 4 Dec 2005 20:32:13 +0000 (+0000) Subject: Return error message instead of fatal abort X-Git-Tag: 1.6.0~1025 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=0e517289789327ae142a63a6e0a5f6910f1fd390;p=lhc%2Fweb%2Fwiklou.git Return error message instead of fatal abort --- diff --git a/includes/Linker.php b/includes/Linker.php index f7c1959bda..d9cd2b6c70 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -500,6 +500,9 @@ class Linker { $boxheight = -1; if ( '' == $manual_thumb ) { $thumb = $img->getThumbnail( $boxwidth, $boxheight ); + if ( is_null( $thumb ) ) { + return 'FATAL ERROR: Thumb object NULL in Linker.php:504'; + } $thumbUrl = $thumb->getUrl(); $boxwidth = $thumb->width; $boxheight = $thumb->height;