mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
PHP8 Compatibility and code cleanup.
This commit is contained in:
@@ -36,9 +36,12 @@ $emessage = '';
|
||||
|
||||
if ((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] !== '') {
|
||||
|
||||
if ( ! USER && ! $pref['anon_post']) {
|
||||
if ( ! USER && ! $pref['anon_post'])
|
||||
{
|
||||
// disallow post
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
$nick = trim(preg_replace("#\[.*\]#si", "", $tp->toDB($_POST['nick'])));
|
||||
|
||||
$cmessage = $_POST['cmessage'];
|
||||
|
Reference in New Issue
Block a user