Skip to content

Commit 7929ac7

Browse files
committed
Same as previous
1 parent f290aee commit 7929ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/classes/mysqlims.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct($main, $slave = false, $strict = false)
6060
*/
6161
public function prepare($query)
6262
{
63-
if (stripos($query, "SELECT") && stripos($query, "FOR UPDATE") === false && $this->mysqliR !== null) {
63+
if (stripos($query, "SELECT") && stripos($query, "FOR UPDATE") === false && $this->slave !== false) {
6464
return $this->mysqliR->prepare($query);
6565
} else {
6666
return $this->mysqliW->prepare($query);

0 commit comments

Comments
 (0)