disable cache for events_comment
Former-commit-id: 4a3477e1911d7d5cc02ac5207ccc30cb43e7f220
This commit is contained in:
parent
d314062623
commit
96d6e12546
|
@ -701,19 +701,20 @@ function events_comment(
|
||||||
$first_event = reset($id_event);
|
$first_event = reset($id_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
$event_comments = db_get_value(
|
$event_comments = mysql_db_process_sql(
|
||||||
'user_comment',
|
'SELECT user_comment FROM '.$event_table.' WHERE id_evento = '.$first_event,
|
||||||
$event_table,
|
'affected_rows',
|
||||||
'id_evento',
|
'',
|
||||||
$first_event
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
$event_comments_array = [];
|
$event_comments_array = [];
|
||||||
|
|
||||||
if ($event_comments == '') {
|
if ($event_comments[0]['user_comment'] == '') {
|
||||||
$comments_format = 'new';
|
$comments_format = 'new';
|
||||||
} else {
|
} else {
|
||||||
// If comments are not stored in json, the format is old.
|
// If comments are not stored in json, the format is old.
|
||||||
$event_comments_array = json_decode($event_comments);
|
$event_comments_array = json_decode($event_comments[0]['user_comment']);
|
||||||
|
|
||||||
if (empty($event_comments_array)) {
|
if (empty($event_comments_array)) {
|
||||||
$comments_format = 'old';
|
$comments_format = 'old';
|
||||||
|
|
Loading…
Reference in New Issue