diff --git a/app/model/Model.php b/app/model/Model.php index 5996f10..ea511f3 100644 --- a/app/model/Model.php +++ b/app/model/Model.php @@ -98,7 +98,7 @@ abstract class Model { protected static function query(string $query, array $parameters = [], $type = ':'): ?array { - if (substr_count($query, $type) != count($parameters)) { + if ($type == '?' && substr_count($query, $type) != count($parameters)) { return null; }