From f28ffe50c10141a1b736582893b39f456049f914 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 23 Aug 2010 14:51:54 +0200 Subject: [PATCH] Catch non-existant image even if using Horde_Themes_Image. --- framework/Core/lib/Horde.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 6b216770c..5c785ceee 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -1422,9 +1422,9 @@ HTML; /* Only encode image files if they are below the dataurl limit. */ if (!($in instanceof Horde_Themes_Image)) { $in = Horde_Themes_Image::fromUri($in); - if (!file_exists($in->fs)) { - return $in->uri; - } + } + if (!file_exists($in->fs)) { + return $in->uri; } /* Delete approx. 50 chars from the limit to account for the various -- 2.11.0