diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-02 15:39:29 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-02 15:39:29 +0300 |
commit | 229635d65a6192bee6a1d56bc9fa3d287aa05c0b (patch) | |
tree | 1207d0c0bb6cba276b5af68474f1c4f60bfa2fcc /lib | |
parent | 6029b4176002391c4702fc77d3e4e766d664e52c (diff) | |
parent | bbd6f42c70684715b5a482d5ba938d8e7b902bbb (diff) |
Merge pull request #17318 from owncloud/stable8-clean-ocsid
[stable8] Delete OCS ID from DB if none is specified
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 6c38cdb8223..6f0abf58e17 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -1173,6 +1173,8 @@ class OC_App { $appData = self::getAppInfo($appId); if (array_key_exists('ocsid', $appData)) { OC_Appconfig::setValue($appId, 'ocsid', $appData['ocsid']); + } elseif(OC_Appconfig::getValue($appId, 'ocsid', null) !== null) { + OC_Appconfig::deleteKey($appId, 'ocsid'); } foreach ($appData['remote'] as $name => $path) { OCP\CONFIG::setAppValue('core', 'remote_' . $name, $appId . '/' . $path); |