Private GIT

Skip to content
Snippets Groups Projects
Commit 642aae5e authored by loiclau's avatar loiclau Committed by Guillaume28
Browse files

* fix knowledge cron compatibility php < 5.4 and check api configuration

parent 6af968a5
Branches
No related tags found
No related merge requests found
...@@ -98,7 +98,11 @@ class WikiApi ...@@ -98,7 +98,11 @@ class WikiApi
$version = $result['query']['general']['generator']; $version = $result['query']['general']['generator'];
$version = explode(' ', $version); $version = explode(' ', $version);
if (isset($version[1])) {
return (float)$version[1]; return (float)$version[1];
} else {
throw new \Exception("An error occured, please check your Knowledge base configuration");
}
} }
public function login() public function login()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment