Add missing version field

This commit is contained in:
Lukas Reschke 2015-06-29 15:09:57 +02:00
parent b56af26199
commit 1db047a336

View file

@ -171,7 +171,7 @@ class AppSettingsController extends Controller {
}); });
foreach($apps as $key => $app) { foreach($apps as $key => $app) {
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) { if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
$remoteAppEntry = $this->ocsClient->getApplication($app['ocsid']); $remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion());
if(array_key_exists('level', $remoteAppEntry)) { if(array_key_exists('level', $remoteAppEntry)) {
$apps[$key]['level'] = $remoteAppEntry['level']; $apps[$key]['level'] = $remoteAppEntry['level'];
@ -187,7 +187,7 @@ class AppSettingsController extends Controller {
}); });
foreach($apps as $key => $app) { foreach($apps as $key => $app) {
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) { if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
$remoteAppEntry = $this->ocsClient->getApplication($app['ocsid']); $remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion());
if(array_key_exists('level', $remoteAppEntry)) { if(array_key_exists('level', $remoteAppEntry)) {
$apps[$key]['level'] = $remoteAppEntry['level']; $apps[$key]['level'] = $remoteAppEntry['level'];