aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-07-02 09:16:00 +0200
committerLukas Reschke <lukas@owncloud.com>2015-07-02 09:20:21 +0200
commit85fc84e3d32643674093bdf78ecf146133355f09 (patch)
tree20bf527840ccd7463ebf652e2be9fe9dd4a51272 /lib/private
parentd6b24c7bbc13a813899e7aa41f3ea5edc0a01ae4 (diff)
downloadnextcloud-server-85fc84e3d32643674093bdf78ecf146133355f09.tar.gz
nextcloud-server-85fc84e3d32643674093bdf78ecf146133355f09.zip
Delete OCS ID from DB if none is specified
If no OCS ID is specified in appinfo.xml and an app update is triggered and a OCS ID is stored in the DB we should clean the value. Ref https://github.com/owncloud/activity/issues/320#issuecomment-117937748
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/app.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 1a32fcfcf77..22f5343373a 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);