/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
-
- function get($blocker, $blocked) {
- return Profile_block::pkeyGet(array('blocker' => $blocker,
- 'blocked' => $blocked));
- }
}
}
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;
# 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;