From 4b2f97d1dceafdd084d080960bdcd3051145b30f Mon Sep 17 00:00:00 2001 From: Thomas Fasselt Date: Thu, 1 Jul 2021 22:57:57 +0200 Subject: [PATCH] fix issue #76 --- API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API.php b/API.php index 238f10a..866dd3c 100644 --- a/API.php +++ b/API.php @@ -58,7 +58,7 @@ static function getAllBotDataForConfig($idsite) public static function getActiveBotData($idSite) { - $rows = Db::get()->fetchAll("SELECT * FROM ".Common::prefixTable('bot_db')." WHERE `botActive` = 1 AND idSite= ? ORDER BY `botId`", array($idSite)); + $rows = Db::get()->fetchAll("SELECT `botName`, `botLastVisit`, `botCount` FROM ".Common::prefixTable('bot_db')." WHERE `botActive` = 1 AND idSite= ? ORDER BY `botId`", array($idSite)); $rows = self::convertBotLastVisitToLocalTime($rows, $idSite); // convert this array to a DataTable object return DataTable::makeFromIndexedArray($rows);