summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-02 12:27:39 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-02 12:27:39 -0400
commit67cf415b7eaa65e2e0b6480638eaffcebcb10dca (patch)
tree1aa89bb01332a6ca5571c9c7c2f31875aaecd35f /classes
parentfd0652994c34d43d2d6708fdd05ac8c35d0d5d4f (diff)
don't try to free faves in User
darcs-hash:20081002162739-5ed1f-7d83c69d986cc704ef1bb9703a105ac04ad38d06.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/classes/User.php b/classes/User.php
index 8c9ffbb6d..2d689fd2b 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -267,14 +267,7 @@ class User extends Memcached_DataObject
function hasFave($notice) {
$fave = Fave::pkeyGet(array('user_id' => $this->id,
'notice_id' => $notice->id));
- if (!is_null($fave)) {
- $result = true;
- } else {
- $result = false;
- }
- $fave->free();
- unset($fave);
- return $result;
+ return ((is_null($fave)) ? false : true);
}
function mutuallySubscribed($other) {