don't try to free faves in User
darcs-hash:20081002162739-5ed1f-7d83c69d986cc704ef1bb9703a105ac04ad38d06.gz
This commit is contained in:
parent
fd0652994c
commit
67cf415b7e
|
@ -267,14 +267,7 @@ class User extends Memcached_DataObject
|
||||||
function hasFave($notice) {
|
function hasFave($notice) {
|
||||||
$fave = Fave::pkeyGet(array('user_id' => $this->id,
|
$fave = Fave::pkeyGet(array('user_id' => $this->id,
|
||||||
'notice_id' => $notice->id));
|
'notice_id' => $notice->id));
|
||||||
if (!is_null($fave)) {
|
return ((is_null($fave)) ? false : true);
|
||||||
$result = true;
|
|
||||||
} else {
|
|
||||||
$result = false;
|
|
||||||
}
|
|
||||||
$fave->free();
|
|
||||||
unset($fave);
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mutuallySubscribed($other) {
|
function mutuallySubscribed($other) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user