@@ -262,7 +262,9 @@ |
||
262 | 262 | ) |
263 | 263 | ); |
264 | 264 | |
265 | - if (is_array($tmp)) return $tmp[$variable] ?: array(); |
|
265 | + if (is_array($tmp)) { |
|
266 | + return $tmp[$variable] ?: array(); |
|
267 | + } |
|
266 | 268 | } |
267 | 269 | } |
268 | 270 |
@@ -1155,7 +1155,9 @@ |
||
1155 | 1155 | //////////////////////////////////////////////////////////////////////////// |
1156 | 1156 | |
1157 | 1157 | $sublevel = 1; |
1158 | - if ($gedcom) $sublevel += (int) $gedcom[0]; |
|
1158 | + if ($gedcom) { |
|
1159 | + $sublevel += (int) $gedcom[0]; |
|
1160 | + } |
|
1159 | 1161 | $NPFX = preg_match("/\n{$sublevel} NPFX (.+)/", $gedcom, $match) ? $match[1] : ''; |
1160 | 1162 | $GIVN = preg_match("/\n{$sublevel} GIVN (.+)/", $gedcom, $match) ? $match[1] : ''; |
1161 | 1163 | $SURN = preg_match("/\n{$sublevel} SURN (.+)/", $gedcom, $match) ? $match[1] : ''; |