Change the function is_pmblocked() since it works as
is_allowed():
function is_pmblocked($by, $blocked) {
$this->DB->query ("SELECT id, allow_msg
FROM ibf_contacts WHERE contact_id='" . $by . "' AND
member_id='" . $blocked . "'");
if ($cando = $this->DB->fetch_row()) {
return intval($cando
['allow_msg'])?FALSE:TRUE;
// return (bool)$cando['allow_msg'];
} else {
return FALSE;
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=337120
Change the function is_pmblocked() since it works as
is_allowed():
function is_pmblocked($by, $blocked) {
$this->DB->query ("SELECT id, allow_msg
FROM ibf_contacts WHERE contact_id='" . $by . "' AND
member_id='" . $blocked . "'");
if ($cando = $this->DB->fetch_row()) {
return intval($cando
['allow_msg'])?FALSE:TRUE;
// return (bool)$cando['allow_msg'];
} else {
return FALSE;
}
}
Logged In: YES
user_id=337120
Please descard my first statement, and use the function
change.