Foren / National / Russian / Тех. поддержка / A non-numeric value encountered

в функции вывода cot_date, PRO плагин

piparkuka
#45136 21. Oktober 2020, 08:01

Привет

Вот часть кода

function cot_date($format, $timestamp = null, $usertimezone = true)
{
global $lang, $L, $Ldt, $usr, $sys;
if (is_null($timestamp))
   {
$timestamp = $sys['now'];
   }
if ($usertimezone)
   {
$timestamp += $usr['timezone'] * 3600;
   }

ошибка в $timestamp +- .. там ругается.

Это специфика php 7.1?