From 8b6a6fe040d030b7b746425c73825539538861f2 Mon Sep 17 00:00:00 2001 From: milsen Date: Thu, 27 Feb 2020 17:45:09 +0100 Subject: [PATCH] Fix null condition values --- src/ConditionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConditionHandler.php b/src/ConditionHandler.php index 46d5e294..130d8ec2 100644 --- a/src/ConditionHandler.php +++ b/src/ConditionHandler.php @@ -109,7 +109,7 @@ public function getValuesByConditionID($conditionId, $userId) $values = []; while ($row = $stmt->fetch(\PDO::FETCH_NUM, \PDO::FETCH_ORI_NEXT)) { - array_push($values, $row[0]); + array_push($values, strval($row[0])); } // There might be multiple values, e.g. one student may be part of // multiple institutes.