Skip to content

Commit dc77276

Browse files
replaced empty string initialisation to array
1 parent 15e100f commit dc77276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: common/php/oboparser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function OBOParser($in)
99

1010
if(strstr($l,"[Term]")) {
1111
if(isset($term)) {
12-
$terms[$term['id'][0]] = $term;
12+
$terms[$term['id'][0]] = $term;
1313
}
14-
$term = '';
14+
$term = array();
1515
} else if(strstr($l,"[Typedef]")) {
1616
if(isset($term)) {
1717
$terms[$term['id'][0]] = $term;
@@ -27,7 +27,7 @@ function OBOParser($in)
2727
if(count($m)) {
2828
$a[1] = $m[1];
2929
}
30-
$term[$a[0]][] = $a[1];
30+
$term[$a[0]][] = $a[1];
3131

3232
} else if(isset($typedef)) {
3333

0 commit comments

Comments
 (0)