Browse Source

no message

DESKTOP-9JTA2JJ\HP 5 years ago
parent
commit
00be6afb7e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      api/application/controllers/Alarm.php

+ 3 - 2
api/application/controllers/Alarm.php

@@ -47,8 +47,9 @@ class Alarm extends Base_Controller {
 			$alarmtype = alarm_translate_ch($alarmtype);
 		}
 
-		$page = !isset($page) ? 1 : $page;
-		$limit = empty($count) ? 20 : $count;
+		$page = empty($page) ? 1 : $page;
+		$count = empty($count) ? 20 : $count;
+		$limit = $count;
 		$offset = ($page - 1)*$count;
 		$section = $this->input->post('section',true);