DESKTOP-9JTA2JJ\HP %!s(int64=5) %!d(string=hai) anos
pai
achega
188ce0c35f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/application/controllers/Alarm.php

+ 1 - 1
api/application/controllers/Alarm.php

@@ -62,7 +62,7 @@ class Alarm extends Base_Controller {
 			$where[] = 'AI.status = '.$status;
 		}
 		if(!empty($alarmtype)) $filter['alarmtype'] = $alarmtype;
-		if(!empty($alarmtype)) $where[] = 'AI.alarmtype like "%'$alarmtype.'%"';
+		if(!empty($alarmtype)) $where[] = 'AI.alarmtype like "%'.$alarmtype.'%"';
 		// if(isset($endDate)) $filter['endDate'] = $endDate;
 		if(isset($endDate)) $where = 'AI.updatetime <= "'.$endDate.'"';
 		if(isset($startDate)) $where = 'AI.updatetime >= "'.$startDate.'"';