Skip to content
Snippets Groups Projects
Unverified Commit 2eb2b6e4 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

If there is no internet connection don't try to contact appstore


Fixes #7119

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 059be95d
No related branches found
No related tags found
No related merge requests found
......@@ -128,8 +128,9 @@ abstract class Fetcher {
*/
public function get() {
$appstoreenabled = $this->config->getSystemValue('appstoreenabled', true);
$internetavailable = $this->config->getSystemValue('has_internet_connection', true);
if (!$appstoreenabled) {
if (!$appstoreenabled || !$internetavailable) {
return [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment