mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#13322 fixed filter comment
This commit is contained in:
parent
8bbced19b1
commit
23f9866a1c
@ -1228,13 +1228,14 @@ function events_get_all(
|
||||
// User comment.
|
||||
$event_comment_join = '';
|
||||
if (empty($filter['user_comment']) === false) {
|
||||
$event_comment_join = 'INNER JOIN tevent_comment ON te.id_evento = tevent_comment.id_event';
|
||||
$sql_filters[] = sprintf(
|
||||
$event_comment_join = 'INNER JOIN tevent_comment ON te.id_evento = tevent_comment.id_event ';
|
||||
$sql_filter_comment = sprintf(
|
||||
' AND (lower(tevent_comment.comment) like lower("%%%s%%")
|
||||
OR lower(tevent_comment.comment) like lower("%%%s%%"))',
|
||||
io_safe_input($filter['user_comment']),
|
||||
$filter['user_comment']
|
||||
);
|
||||
$event_comment_join .= $sql_filter_comment;
|
||||
}
|
||||
|
||||
// Source.
|
||||
|
Loading…
x
Reference in New Issue
Block a user