From e00dcb4f736723cab3ba66ea060b167f5948a9d2 Mon Sep 17 00:00:00 2001 From: Gauthier PC portable 024 Date: Fri, 8 Oct 2021 09:48:17 +0200 Subject: [PATCH] FIX : travis --- htdocs/hrm/position.php | 2 +- htdocs/hrm/skill_card.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/hrm/position.php b/htdocs/hrm/position.php index 0fcc817c8c9..f17676dc5d9 100644 --- a/htdocs/hrm/position.php +++ b/htdocs/hrm/position.php @@ -479,7 +479,7 @@ function DisplayPositionList() } else { $sql .= " WHERE 1 = 1"; } - $sql .= " AND t.fk_job = " . $fk_job . " "; + $sql .= " AND t.fk_job = " . ((int) $fk_job) . " "; foreach ($search as $key => $val) { if (array_key_exists($key, $object->fields)) { diff --git a/htdocs/hrm/skill_card.php b/htdocs/hrm/skill_card.php index 7d45ab152a0..c0d3d67ccab 100644 --- a/htdocs/hrm/skill_card.php +++ b/htdocs/hrm/skill_card.php @@ -627,7 +627,7 @@ if ($action != "create" && $action != "edit") { } if (!empty($id)) { - $sql .= " AND fk_skill = " . $id . " "; + $sql .= " AND fk_skill = " . ((int) $id) . " "; } // if total of record found is smaller than limit, no need to do paging and to restart another select with limits set.