1
0
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:
Cameron
2020-12-25 10:23:56 -08:00
parent 76d72b1c08
commit 7dfac0dcfa
27 changed files with 145 additions and 81 deletions

View File

@@ -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']);
}

View File

@@ -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'
);