diff --git a/lib/Database/ez_mysqli.php b/lib/Database/ez_mysqli.php index 9ea0ff9..818a3e6 100644 --- a/lib/Database/ez_mysqli.php +++ b/lib/Database/ez_mysqli.php @@ -288,6 +288,15 @@ public function query_prepared(string $query, ?array $param = null) return false; } + if (empty($param)) { + $result = ($stmt->execute()) ? $this->fetch_prepared_result($stmt, $query) : false; + + $stmt->free_result(); + $stmt->close(); + + return $result; + } + $params = []; $types = \array_reduce( $param,