From 6a8eb8ba9317546b9e89b2c68fb6322b8c3bc00d Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 8 Oct 2008 12:42:31 +0000 Subject: Minor optimisations. Introducing exists() on filestores git-svn-id: https://code.elgg.org/elgg/trunk@2222 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/profile/start.php') 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"; -- cgit v1.2.3