From a1df08d019410fc199a8a06a452b487ea76bfed9 Mon Sep 17 00:00:00 2001 From: "Duck (Jakob Munih)" Date: Tue, 7 Jul 2009 18:33:39 +0200 Subject: [PATCH] Catch exceptions for images --- news/pdf.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) } } -- 2.11.0