DataObjects/Core_watch.php
[Pman.Core] / Images.php
index f76e98a..65266fc 100644 (file)
@@ -172,11 +172,12 @@ class Pman_Core_Images extends Pman
         
        
         $img = DB_DataObjecT::factory('Images');
-        print_r($img);exit;
+         
         if (!$id || !$img->get($id)) {
              
             header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
                 urlencode("image has been removed or deleted."));
+            
         }
         $this->serve($img);
         exit;
@@ -239,7 +240,7 @@ class Pman_Core_Images extends Pman
         
         require_once 'File/Convert.php';
         if (!file_exists($img->getStoreName())) {
-            //print_r($img);exit;
+//            print_r($img);exit;
             header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
                 urlencode("Original file was missing : " . $img->getStoreName()));