//$_CB_database->setQuery(str_replace("{USERID}", $user->id, str_replace("{VIEWERID}", $viewer->id, $query)));
if ($viewer->id != null) {
$query = str_replace("{VIEWERID}", $viewer->id, $query);
} else {
$query = str_replace("{VIEWERID}", "0", $query);
}
if ($user->id != null) {
$query = str_replace("{USERID}", $user->id, $query);
} else {
$query = str_replace("{USERID}", "0", $query);
}
$_CB_database->setQuery($query);
Please Log in to join the conversation.
razzo wrote: Little problem with J3.x
...
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.