Skip to content

Commit ab92045

Browse files
committed
Fix PHP Warning
1 parent 4f629eb commit ab92045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TgDatabase/DataModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function get($name) {
5858
if (!isset($this->models[$name]) && ($this->daoFactory != NULL)) {
5959
$this->register($name, $this->daoFactory->createDao($name));
6060
}
61-
return $this->models[$name];
61+
return isset($this->models[$name]) ? $this->models[$name] : NULL;
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)