From 43a6adfa1c99f2c2fdf797a8f496b9c1c5530c59 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 7 May 2020 21:47:49 +0200 Subject: [PATCH] Fix undefined index notice --- chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.php b/chat.php index ea27571..d5e5c25 100644 --- a/chat.php +++ b/chat.php @@ -45,7 +45,7 @@ load_config(); if(!isset($_REQUEST['session']) && isset($_COOKIE[COOKIENAME])){ $_REQUEST['session']=$_COOKIE[COOKIENAME]; } -$_REQUEST['session'] = preg_replace('/[^0-9a-zA-Z]/', '', $_REQUEST['session']); +$_REQUEST['session'] = preg_replace('/[^0-9a-zA-Z]/', '', $_REQUEST['session'] ?? ''); load_lang(); check_db(); cron();