You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/farmasi/Admin.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -555,7 +555,7 @@ public function postDetailpemberianobatData()
555
555
$totalRecordwithFilter = $records['allcount'];
556
556
557
557
## Fetch records
558
-
$sel = $this->db()->pdo()->prepare("select * from detail_pemberian_obat WHERE 1 ".$searchQuery." order by ".$columnName."".$columnSortOrder." limit ".intval($row1).",".intval($rowperpage));
558
+
$sel = $this->db()->pdo()->prepare("select * from detail_pemberian_obat WHERE 1 ".$searchQuery." order by ".$columnName."".$columnSortOrder." limit ".(int)$row1.",".(int)$rowperpage);
559
559
$sel->execute($params);
560
560
$result = $sel->fetchAll(\PDO::FETCH_ASSOC);
561
561
@@ -668,7 +668,7 @@ public function postRiwayatbarangmedisData()
668
668
$totalRecordwithFilter = $records['allcount'];
669
669
670
670
## Fetch records
671
-
$sel = $this->db()->pdo()->prepare("select * from riwayat_barang_medis WHERE 1 ".$searchQuery." order by ".$columnName."".$columnSortOrder." limit ".intval($row1).",".intval($rowperpage));
671
+
$sel = $this->db()->pdo()->prepare("select * from riwayat_barang_medis WHERE 1 ".$searchQuery." order by ".$columnName."".$columnSortOrder." limit ".(int)$row1.",".(int)$rowperpage);
0 commit comments