diff --git a/Connection.php b/Connection.php index f318b85..df7667e 100644 --- a/Connection.php +++ b/Connection.php @@ -182,10 +182,10 @@ class Connection extends Component return false; } try { - if (($steam = $client->query('select 1')) === false) { + if ($client->query('select 1') === false) { return false; } - return $steam->fetch(PDO::FETCH_ASSOC); + return true; } catch (\Throwable $exception) { return false; }