issue84, if source picture does not exist or not readable for current user, stop...
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 17:25:50 +0000 (18:25 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 17:25:50 +0000 (18:25 +0100)
phpfspot.class.php

index d5eb9708a7741c6fa5604f9d89d8a36e4b2342a7..b61f5161a68d0ed5b81242d2850c0ad887680cb5 100644 (file)
@@ -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 */