@@ -181,8 +181,11 @@ |
||
| 181 | 181 | if (array_key_exists('regex-template', $source)) { |
| 182 | 182 | foreach($source['regex-template'] as $e => $t) { |
| 183 | 183 | if(preg_match($e, $entity->getEntityID())) { |
| 184 | - if(is_array($template)) $template = array_merge($template,$t); |
|
| 185 | - else $template = $t; |
|
| 184 | + if(is_array($template)) { |
|
| 185 | + $template = array_merge($template,$t); |
|
| 186 | + } else { |
|
| 187 | + $template = $t; |
|
| 188 | + } |
|
| 186 | 189 | } |
| 187 | 190 | } |
| 188 | 191 | } |