aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 12:42:31 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 12:42:31 +0000
commit6a8eb8ba9317546b9e89b2c68fb6322b8c3bc00d (patch)
treebf547efe41f4cdad7ae2f52d6e22377b3c0e0c6d /mod
parent939ce5e44c049b0897899c8c7a79544068d2e3b3 (diff)
downloadelgg-6a8eb8ba9317546b9e89b2c68fb6322b8c3bc00d.tar.gz
elgg-6a8eb8ba9317546b9e89b2c68fb6322b8c3bc00d.tar.bz2
Minor optimisations.
Introducing exists() on filestores git-svn-id: https://code.elgg.org/elgg/trunk@2222 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 811bffbbd..ecaed078d 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -165,7 +165,7 @@
$filehandler->owner_guid = $entity->getGUID();
$filehandler->setFilename("profile/" . $username . $size . ".jpg");
- if ($filehandler->open("read")) {
+ if ($filehandler->exists()) {
$url = $CONFIG->url . "pg/icon/$username/$size/$icontime.jpg";