Skip to content

Commit

Permalink
Change is null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
skie committed Jan 12, 2016
1 parent d1372b8 commit 60818bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Behavior/TreeBehavior.php
Expand Up @@ -83,7 +83,7 @@ public function __construct(Table $table, array $config = [])
{
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')));
Expand Down

0 comments on commit 60818bd

Please sign in to comment.