From: Duck (Jakob Munih) Date: Tue, 7 Jul 2009 16:33:39 +0000 (+0200) Subject: Catch exceptions for images X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a1df08d019410fc199a8a06a452b487ea76bfed9;p=horde.git Catch exceptions for images --- diff --git a/news/pdf.php b/news/pdf.php index 7e4bbe023..431e41702 100644 --- a/news/pdf.php +++ b/news/pdf.php @@ -42,8 +42,10 @@ if ($row['picture']) { $file = $conf['vfs']['params']['vfsroot'] . '/' . News::VFS_PATH . '/images/news/big/' . $id . '.' . $conf['images']['image_type']; - if (file_exists($file)) { + try { $pdf->image($file, 120, 20); + } catch (Horde_Pdf_Exception $e) { + Horde::logMessage($e, __FILE__, __LINE__, PEAR_LOG_INFO) } }