Parcourir la source

#5406 AI Agents revamp: alerts trigger

Aleksandr Trofimov il y a 5 mois
Parent
commit
2050be9bc9
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      inc/classes/BxDolAIQuery.php

+ 2 - 0
inc/classes/BxDolAIQuery.php

@@ -973,6 +973,8 @@ class BxDolAIQuery extends BxDolDb
 
     static public function getAlertDesc($sAlert) 
     {
+        if (!$sAlert)
+            return '';
         $oDb = BxDolDb::getInstance();
         [$sUnit, $sAction] = explode(':', $sAlert);
         $sDesc = $oDb->getOne("SELECT `description` FROM `sys_alerts_desc` WHERE `unit` = :unit AND `action` = :action LIMIT 1", [