explode(): Passing null to parameter #2 ($string) of type string is deprecated

Stacktrace:
#5 Whoops\Exception\ErrorException in /var/enginegp/system/library/games/games.php:454
This commit is contained in:
Sergei Solovev 2023-04-06 22:33:35 +03:00
parent 96733e543b
commit 8d108c3e08

View file

@ -451,7 +451,7 @@
$check = 0;
// Проверка периода
if(in_array($data['time'], explode(':', $data_promo['time'])))
if(in_array($data['time'], explode(':', $data_promo['time'] ?? '')))
$check = 1;
// Проверка значения FPS