Skip to content

Commit

Permalink
Switch out is_null()
Browse files Browse the repository at this point in the history
  • Loading branch information
graemetait committed Sep 21, 2015
1 parent 1b33efa commit dc856b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -857,7 +857,7 @@ public function name($data) {
* @return bool True if the database is connected, else false
*/
public function isConnected() {
if (is_null($this->_connection)) {
if ($this->_connection === null) {
$connected = false;
} else {
try {
Expand Down

0 comments on commit dc856b8

Please sign in to comment.