From 0501e39d1db0f53d3b9b645a78de068b15f964ed Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 30 Dec 2007 18:25:50 +0100 Subject: issue84, if source picture does not exist or not readable for current user, stop execution to avoid warning messages --- phpfspot.class.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index d5eb970..b61f516 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -425,10 +425,12 @@ class PHPFSPOT { if(!file_exists($orig_path)) { $this->_error("Photo ". $orig_path ." does not exist!
\n"); + return; } if(!is_readable($orig_path)) { $this->_error("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."
\n"); + return; } /* If the thumbnail doesn't exist yet, try to create it */ -- cgit v1.2.3-18-g5258