fix settings fatal error
This commit is contained in:
parent
2eff1bf6d0
commit
916cef6006
@ -411,11 +411,13 @@ class CrayonLang extends CrayonVersionResource {
|
||||
$name = trim(strtoupper($name));
|
||||
if (array_key_exists($name, $this->elements) && $element === NULL) {
|
||||
return $this->elements[$name];
|
||||
} else if (@get_class($element) == CRAYON_ELEMENT_CLASS) {
|
||||
} else if (is_object($element)) {
|
||||
if (@get_class($element) == CRAYON_ELEMENT_CLASS) {
|
||||
$this->elements[$name] = $element;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function elements() {
|
||||
return $this->elements;
|
||||
|
Loading…
Reference in New Issue
Block a user