summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-12-30 18:25:50 +0100
committerAndreas Unterkircher <unki@netshadow.at>2007-12-30 18:25:50 +0100
commit0501e39d1db0f53d3b9b645a78de068b15f964ed (patch)
tree66e8e4a141d85fb43ce150150b6260d6a99fc441
parentd4e3972681b66912c5594c9021b06eb73585c80a (diff)
issue84, if source picture does not exist or not readable for current user, stop execution to avoid warning messages
-rw-r--r--phpfspot.class.php2
1 files changed, 2 insertions, 0 deletions
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!<br />\n");
+ return;
}
if(!is_readable($orig_path)) {
$this->_error("Photo ". $orig_path ." is not readable for user ". $this->getuid() ."<br />\n");
+ return;
}
/* If the thumbnail doesn't exist yet, try to create it */