From 0e517289789327ae142a63a6e0a5f6910f1fd390 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 4 Dec 2005 20:32:13 +0000 Subject: [PATCH] Return error message instead of fatal abort --- includes/Linker.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1