Skip to content

Commit 3cd0b3e

Browse files
committed
replacePlaceHolders: return string as is if no $vals is empty
1 parent d4120c6 commit 3cd0b3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MysqliDb.php

+3
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,9 @@ protected function replacePlaceHolders ($str, $vals) {
13411341
$i = 1;
13421342
$newStr = "";
13431343

1344+
if (empty ($vals))
1345+
return $str;
1346+
13441347
while ($pos = strpos ($str, "?")) {
13451348
$val = $vals[$i++];
13461349
if (is_object ($val))

0 commit comments

Comments
 (0)