From: Jan Schneider Date: Mon, 23 Aug 2010 12:51:54 +0000 (+0200) Subject: Catch non-existant image even if using Horde_Themes_Image. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f28ffe50c10141a1b736582893b39f456049f914;p=horde.git Catch non-existant image even if using Horde_Themes_Image. --- 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