]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
more specific profile-get is slightly more efficient
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Oct 2008 02:11:58 +0000 (22:11 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Oct 2008 02:11:58 +0000 (22:11 -0400)
darcs-hash:20081004021158-5ed1f-c8f5e68dd411a5fe7a01ae35398914469c377794.gz

classes/Notice.php

index 04ac6d7d4e5ae38613fd8fe6438b7e11a0200b9a..7566136ce80ec62756192ce76c07f61a1c279351 100644 (file)
@@ -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() {