Fix get_class on potential null
This commit is contained in:
parent
e400e03cfa
commit
974ecf82fe
1 changed files with 2 additions and 5 deletions
|
|
@ -13280,11 +13280,8 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
|
|||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."user as u on u.rowid = a.fk_user_action";
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_actioncomm as c ON a.fk_action = c.id";
|
||||
|
||||
if (get_class($filterobj) !== 'User') {
|
||||
$force_filter_contact = false;
|
||||
} else {
|
||||
$force_filter_contact = true;
|
||||
}
|
||||
$force_filter_contact = $filterobj instanceof User;
|
||||
|
||||
if (is_object($objcon) && $objcon->id > 0) {
|
||||
$force_filter_contact = true;
|
||||
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."actioncomm_resources as r ON a.id = r.fk_actioncomm";
|
||||
|
|
|
|||
Loading…
Reference in a new issue