Commit d46f43b0 authored by Ad Schellevis's avatar Ad Schellevis

(model) fix typo

parent 14d53f5b
......@@ -111,7 +111,7 @@ abstract class BaseModel
if (class_exists($classname)) {
// construct field type object
$field_rfcls = new \ReflectionClass($classname);
if (!$field_rfcls->getParentClass()->name == 'OPNsense\Base\FieldTypes\BaseField') {
if ($field_rfcls->getParentClass()->name != 'OPNsense\Base\FieldTypes\BaseField') {
// class found, but of wrong type. raise an exception.
throw new ModelException("class ".$field_rfcls->name." of wrong type in model definition");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment