From f3bee1c3ac1fb3d5c88ba36dc33ff6837a4718ac Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Thu, 12 Jan 2023 03:21:13 +0200 Subject: [PATCH] Typed property User::$info must be array, bool used --- _incl_data/class/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_incl_data/class/User.php b/_incl_data/class/User.php index 004fd18c..c3748e4c 100644 --- a/_incl_data/class/User.php +++ b/_incl_data/class/User.php @@ -1916,6 +1916,11 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.` [$_COOKIE['login']] ); } + + if (empty($this->info)) { + $this->info = []; + } + Database::init(); // для всяких mysql_* $this->infoTasks();