]> git.mjollnir.org Git - s9y.git/commitdiff
bugfix from Mathias Leisi: invalid file_exists() check
authorgarvinhicking <garvinhicking>
Sun, 6 Aug 2006 10:39:43 +0000 (10:39 +0000)
committergarvinhicking <garvinhicking>
Sun, 6 Aug 2006 10:39:43 +0000 (10:39 +0000)
serendipity_admin_image_selector.php

index 9708d74b787b21d816b1de5f5591b2374590a898..7b4a73843ff684ad47a4a2b3549305bdbd670049 100644 (file)
@@ -111,10 +111,6 @@ switch ($serendipity['GET']['step']) {
         }
 
         $file           = serendipity_fetchImageFromDatabase($serendipity['GET']['image']);
-        if (!is_array($file)) {
-            echo PERM_DENIED;
-            break;
-        }
         $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . (!empty($file['thumbnail_name']) ? '.' . $file['thumbnail_name'] : '') . '.' . $file['extension'];
         if ($file['hotlink']) {
             $imgName    = $file['path'];
@@ -137,7 +133,7 @@ switch ($serendipity['GET']['step']) {
 
 <div>
 <?php
-        if (!file_exists($file['imgsrc']) && $is_image) {
+        if ($is_image) {
 
             $dimWidth  = $file['dimensions_width'];
             $dimHeight = $file['dimensions_height'];