diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-07-02 12:37:31 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-07-02 12:37:31 +0200 |
commit | c7968d202f9d825b41cb79ea23787be6891b2b30 (patch) | |
tree | 38f401a5b8c3a05fc02f8d6418aca4ea6eefc687 /lib/private | |
parent | bfcb8ffeb3bf46963cb002feec07c08643ec9d82 (diff) | |
parent | b1000364575ac875ac5a3b452b4352ef41772558 (diff) | |
download | nextcloud-server-c7968d202f9d825b41cb79ea23787be6891b2b30.tar.gz nextcloud-server-c7968d202f9d825b41cb79ea23787be6891b2b30.zip |
Merge pull request #17316 from owncloud/master-delete-ocsid-from-db-if-none-specified
[Master] Delete OCS ID from DB if none is specified
Diffstat (limited to 'lib/private')
-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 d5e07ffdbcc..e45d9ac07ba 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -1174,6 +1174,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); |