Skip to content
Snippets Groups Projects
Commit 52aa9c7c authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Make it work with PHP 5.3 (does not support function return values as array...

Make it work with PHP 5.3 (does not support function return values as array references: functioncall()['key'])
parent bb7ebf09
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,8 @@ $helper->logitem("Saved counter: ", $res); ...@@ -45,7 +45,8 @@ $helper->logitem("Saved counter: ", $res);
} }
public function readableType($type) public function readableType($type)
{ {
return $this->getNumberTypes()[$type]; $types = $this->getNumberTypes();
return $types[$type];
} }
public function readableScope($scope) public function readableScope($scope)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment