Skip to content
Snippets Groups Projects
Commit b6010cb0 authored by André Noack's avatar André Noack
Browse files

closes #1266

parent affad0b8
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
}
if (isset($config['additional_fields'])) {
foreach ($config['additional_fields'] as $a_field => $a_config) {
if (!empty($a_config) && is_array($a_config) && !(isset($a_config['get']) || isset($a_config['set']))) {
if (is_array($a_config) && !(isset($a_config['get']) || isset($a_config['set']))) {
$relation = $a_config[0] ?? '';
$relation_field = $a_config[1] ?? '';
if (!$relation) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment