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

index 0cd33c7..4833c68 100644 (file)
@@ -73,6 +73,10 @@ class Pman_Images extends Pman
             $img = DB_DataObjecT::factory('Images');
             $img->ontable = $onbits[0];
             $img->onid = $onbits[1];
+            if (empty($_REQUEST['anytype'])) {
+                $img->whereAdd("mimetype like 'image/%'");
+            }
+            
             if (isset($onbits[2])) {
                 $img->imgtype = $onbits[2];
             }