From 226d19e62ceb2d82271f65f196be9f102d4e6994 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Wed, 20 Dec 2023 18:55:12 +0100 Subject: [PATCH] fix: :adhesive_bandage: fix error on empty argtypes list (no bindings needed) --- www/mysql_adapter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/mysql_adapter.php b/www/mysql_adapter.php index fb08aca..a05eb5b 100644 --- a/www/mysql_adapter.php +++ b/www/mysql_adapter.php @@ -46,7 +46,9 @@ class MySQLAdapter { function _exec($qery, $argtypes, ...$args) { $stmt = $this->raw->prepare($qery); - $stmt->bind_param($argtypes, ...$args); + if($argtypes != ""){ + $stmt->bind_param($argtypes, ...$args); + } $stmt->execute(); return $stmt->get_result();