Browse Source

Change is null check.

Yevgeny Tomenko 10 years ago
parent
commit
60818bda41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/Behavior/TreeBehavior.php

+ 1 - 1
src/ORM/Behavior/TreeBehavior.php

@@ -83,7 +83,7 @@ class TreeBehavior extends Behavior
     {
         parent::__construct($table, $config);
         $connection = $table->connection();
-        if (!is_null($connection)) {
+        if ($connection !== null) {
             $driver = $connection->driver();
             $this->config('leftField', $driver->quoteIdentifier($this->config('left')));
             $this->config('rightField', $driver->quoteIdentifier($this->config('right')));