diff --git a/lib/ocsclient.php b/lib/ocsclient.php index bd0302a2a81f97d2061b5d6476dab74949ac4941..67966fe7cd0ee07ee19b4fdd88b345a24b6e7792 100644 --- a/lib/ocsclient.php +++ b/lib/ocsclient.php @@ -36,7 +36,12 @@ class OC_OCSClient{ * to set it in the config file or it will fallback to the default */ private static function getAppStoreURL() { - $url = OC_Config::getValue('appstoreurl', 'http://api.apps.owncloud.com/v1'); + if(OC_Util::getEditionString()===''){ + $default='http://api.apps.owncloud.com/v1'; + }else{ + $default=''; + } + $url = OC_Config::getValue('appstoreurl', $default); return($url); }