Skip to content

Commit 3e10fdb

Browse files
authored
Update DB.php
1 parent ac1c0e5 commit 3e10fdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DB.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ private static function queryTyped($query): mixed
8080
}
8181
}
8282
$stmt = self::$mysqli->prepare($query);
83-
$stmt->bind_param(...$nargs);
83+
if ($nargs[0]) {
84+
$stmt->bind_param(...$nargs);
85+
}
8486
} else {
8587
$stmt = self::$mysqli->prepare($query);
8688
}

0 commit comments

Comments
 (0)