summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */