Skip to content

Commit

Permalink
fix issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas--F authored Jul 1, 2021
1 parent 42fca5a commit 4b2f97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b2f97d

Please sign in to comment.