From f994c57a1fe7aaab78d1e8839079e5e9a380a9d9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 17 Oct 2002 22:07:00 +0000 Subject: [PATCH] image shows title if image is not found --- etemplate/inc/class.html.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/inc/class.html.inc.php b/etemplate/inc/class.html.inc.php index f40913d46d..0b98789c1c 100644 --- a/etemplate/inc/class.html.inc.php +++ b/etemplate/inc/class.html.inc.php @@ -264,6 +264,10 @@ class html { $path = $name; // name may already contain absolut path } + if (!@is_readable($GLOBALS['DOCUMENT_ROOT'] . $path)) + { + return $title; + } if ($title) { $options .= " $this->prefered_img_title=\"$title\"";