We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f629eb commit ab92045Copy full SHA for ab92045
src/TgDatabase/DataModel.php
@@ -58,7 +58,7 @@ public function get($name) {
58
if (!isset($this->models[$name]) && ($this->daoFactory != NULL)) {
59
$this->register($name, $this->daoFactory->createDao($name));
60
}
61
- return $this->models[$name];
+ return isset($this->models[$name]) ? $this->models[$name] : NULL;
62
63
64
/**
0 commit comments