From: Evan Prodromou Date: Sat, 4 Oct 2008 02:11:58 +0000 (-0400) Subject: more specific profile-get is slightly more efficient X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9bc366190e78b7f952b6f040c6fd01c09573a60;p=quix0rs-gnu-social.git more specific profile-get is slightly more efficient darcs-hash:20081004021158-5ed1f-c8f5e68dd411a5fe7a01ae35398914469c377794.gz --- diff --git a/classes/Notice.php b/classes/Notice.php index 04ac6d7d4e..7566136ce8 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -54,7 +54,7 @@ class Notice extends Memcached_DataObject ###END_AUTOCODE function getProfile() { - return Profile::staticGet($this->profile_id); + return Profile::staticGet('id', $this->profile_id); } function delete() {