qqq
This commit is contained in:
+2
-2
@@ -182,10 +182,10 @@ class Connection extends Component
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (($steam = $client->query('select 1')) === false) {
|
if ($client->query('select 1') === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return $steam->fetch(PDO::FETCH_ASSOC);
|
return true;
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user