Pman/Images.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 27 Oct 2010 07:28:16 +0000 (15:28 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 27 Oct 2010 07:28:16 +0000 (15:28 +0800)
Pman/Images.php

index 4833c68..708ea65 100644 (file)
@@ -126,6 +126,11 @@ class Pman_Images extends Pman
     function serve($img)
     {
         require_once 'File/Convert.php';
+        if (!file_exists($img->getStoreName())) {
+            die("Original file was missing : " . $img->getStoreName());
+    
+        }
+        
         $x = new File_Convert($img->getStoreName(), $img->mimetype);
         if (empty($this->as_mimetype)) {
             $this->as_mimetype  = $img->mimetype;