From 43ac7e82048abc72230c6a91a92c228100fe5835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= <56637712+whitevast@users.noreply.github.com> Date: Wed, 7 Jun 2023 11:13:55 +0800 Subject: [PATCH] PHP8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправление установки на PHP8 --- modules/telegram/telegram.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/telegram/telegram.class.php b/modules/telegram/telegram.class.php index ea6eac5..f5c1f9d 100644 --- a/modules/telegram/telegram.class.php +++ b/modules/telegram/telegram.class.php @@ -1864,7 +1864,7 @@ function dbInstall($data) { EOD; parent::dbInstall($data); $cmds = SQLSelectOne("SELECT * FROM tlg_cmd;"); - if(count($cmds) == 0) { + if(!isset($cmds)) { $rec['TITLE'] = 'Ping'; $rec['DESCRIPTION'] = 'Example command Ping-Pong'; $rec['CODE'] = 'return "Pong!";';