We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf31bf commit e77de3eCopy full SHA for e77de3e
system/Database/Query.php
@@ -279,16 +279,11 @@ protected function compileBinds()
279
return;
280
}
281
282
- if (! is_array($this->binds)) {
283
- $binds = [$this->binds];
284
- $bindCount = 1;
285
- } else {
286
- $binds = $this->binds;
287
- $bindCount = count($binds);
288
- }
+ $binds = is_array($this->binds) ? $this->binds : [$this->binds];
289
290
if (is_numeric(key(array_slice($binds, 0, 1)))) {
291
- $ml = strlen($this->bindMarker);
+ $bindCount = count($binds);
+ $ml = strlen($this->bindMarker);
292
293
$this->finalQueryString = $this->matchSimpleBinds($sql, $binds, $bindCount, $ml);
294
} else {
0 commit comments