aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 14:45:46 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 14:45:46 +0000
commitfedfac5799b93b0609f4a9fab4623f95b3c906ae (patch)
tree200133a17cee2c95bc8f09f6a5dc81996504e6b4
parentb6ccae4fcde10809993a08dfe1af96738b3b2aea (diff)
downloadelgg-fedfac5799b93b0609f4a9fab4623f95b3c906ae.tar.gz
elgg-fedfac5799b93b0609f4a9fab4623f95b3c906ae.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@2224 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/entities.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index aca26ddd5..74f3cdfc1 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1972,7 +1972,8 @@
if(!@getimagesize($CONFIG->path . $url))
$url = "views/$viewtype/graphics/icons/default/$size.png";
- return $CONFIG->url . $url;
+ if (@getimagesize($CONFIG->path . $url))
+ return $CONFIG->url . $url;
}
}