mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Issue #4299 - PHP8 compatibility fixes.
This commit is contained in:
@@ -42,7 +42,7 @@ class forum_event
|
||||
fclose($myfile);
|
||||
echo('hola');
|
||||
print_a($data);*/
|
||||
e107::getDb()->update('user_extended', "user_plugin_forum_viewed = NULL WHERE user_extended_id = ".$data[user_id]);
|
||||
e107::getDb()->update('user_extended', "user_plugin_forum_viewed = NULL WHERE user_extended_id = ".$data['user_id']);
|
||||
|
||||
}
|
||||
|
||||
|
@@ -46,7 +46,7 @@ class forum_search extends e_search // include plugin-folder in the name.
|
||||
'return_fields' => array('t.thread_id', 't.thread_name', 'p.post_id', 'p.post_entry', 't.thread_forum_id', 't.thread_datestamp', 't.thread_user', 'u.user_id', 'u.user_name', 'f.forum_class', 'f.forum_id', 'f.forum_name', 'f.forum_sef'),
|
||||
'search_fields' => array('t.thread_name'=>'1.2', 'p.post_entry'=>'0.6'), // fields and weights.
|
||||
|
||||
'order' => array('thread_datestamp' => DESC),
|
||||
'order' => array('thread_datestamp' => 'DESC'),
|
||||
'refpage' => 'forum'
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user