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 7fb6b17 commit b352200Copy full SHA for b352200
system/Database/Query.php
@@ -279,19 +279,14 @@ 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
if (empty($this->bindMarker)) {
292
293
294
+ $bindCount = count($binds);
295
$ml = strlen($this->bindMarker);
296
297
$this->finalQueryString = $this->matchSimpleBinds($sql, $binds, $bindCount, $ml);
0 commit comments