From: Andreas Unterkircher Date: Sun, 30 Dec 2007 17:25:50 +0000 (+0100) Subject: issue84, if source picture does not exist or not readable for current user, stop... X-Git-Tag: phpfspot-1.2~3 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0501e39d1db0f53d3b9b645a78de068b15f964ed;p=phpfspot.git issue84, if source picture does not exist or not readable for current user, stop execution to avoid warning messages --- 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 */