unify null checks - avoid method call in favor of strict check

This commit is contained in:
euromark 2013-08-16 20:12:49 +02:00
parent 8428928fd6
commit 6cf147e8c8
35 changed files with 62 additions and 62 deletions

View file

@ -289,7 +289,7 @@ class ClassRegistry {
if (empty($param) && is_array($type)) {
$param = $type;
$type = 'Model';
} elseif (is_null($param)) {
} elseif ($param === null) {
unset($_this->_config[$type]);
} elseif (empty($param) && is_string($type)) {
return isset($_this->_config[$type]) ? $_this->_config[$type] : null;