DESKTOP-9JTA2JJ\HP 5 år sedan
förälder
incheckning
188ce0c35f
1 ändrade filer med 1 tillägg och 1 borttagningar
  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.'"';