From d1095b1dcc7f317b16159a5b53717c8b8f92d8f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sat, 20 Mar 2010 00:12:15 +0100 Subject: [PATCH] Simplify profile fetching MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile.php b/modules/profile.php index 6c2dc9f..3999826 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -233,7 +233,7 @@ class ProfileModule extends PLModule // Fetches profile's and profile's owner information and redirects to // marketing if the owner has not subscribed and the requirer has logged in. - $profile = Profile::getBulkProfilesWithPIDs(array($pid), Profile::FETCH_ALL, $view); + $profile = Profile::get($pid, Profile::FETCH_ALL, $view); $owner = $profile->owner(); if (S::logged() && !is_null($owner) && $owner->state == 'pending') { pl_redirect('marketing/public/' . $profile->hrid()); -- 2.1.4