summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-08 23:12:27 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-08 23:12:27 -0500
commitfacba2566b7695a84cb8bd6b40e9f9b842db6776 (patch)
treeab751e87daaf0336962b1b8eeceadcdfba3ce8b3 /classes/User.php
parenta68f513cc8527544aec5b5f96b4e47861faf694d (diff)
removed Profile_block::get, changed to use pkeyGet
darcs-hash:20081209041227-5ed1f-2edefdc79545da646a6fd40b15fd72809c15831c.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/User.php b/classes/User.php
index 04558d43a..a64dc449d 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -145,7 +145,9 @@ class User extends Memcached_DataObject
}
function hasBlocked($other) {
- $block = Profile_block::get($this->id, $other->id);
+
+ $block = Profile_block::pkeyGet(array('blocker' => $this->id,
+ 'blocked' => $other->id));
if (is_null($block)) {
$result = false;
@@ -465,7 +467,8 @@ class User extends Memcached_DataObject
# Get the block record
- $block = Profile_block::get($this->id, $other->id);
+ $block = Profile_block::pkeyGet(array('blocker' => $this->id,
+ 'blocked' => $other->id));
if (!$block) {
return false;