Skip to content

Commit f9ce2d2

Browse files
authored
Use Yoda Condition checks, you must.
1 parent 3d87f8d commit f9ce2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ public function ex_mysql_ping( $dbh ) {
15621562

15631563
// Emulate ping with a simple query
15641564
$res = $this->ex_mysql_query( 'SELECT /* hyperbd::ex_mysql_ping */ 1', $dbh );
1565-
return is_object( $res ) && $res->num_rows === 1;
1565+
return is_object( $res ) && 1 === $res->num_rows;
15661566
}
15671567

15681568
public function ex_mysql_affected_rows( $dbh ) {

0 commit comments

Comments
 (0)