small improvements

This commit is contained in:
kremsy
2017-05-13 23:05:47 +02:00
parent eebb2476b0
commit 52b54073bb
2 changed files with 60 additions and 39 deletions

View File

@ -421,9 +421,10 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
$response = WebReader::getUrl($url);
$dataJson = $response->getContent();
$pluginVersion = json_decode($dataJson);
if (!$pluginVersion) {
if (!$pluginVersion || !property_exists($pluginVersion, 'id')) {
return false;
}
$pluginUpdateData = new PluginUpdateData($pluginVersion);
$version = $pluginClass::getVersion();