If there is no internet connection don't try to contact appstore
Fixes #7119 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
059be95d6c
commit
2eb2b6e437
|
@ -128,8 +128,9 @@ abstract class Fetcher {
|
||||||
*/
|
*/
|
||||||
public function get() {
|
public function get() {
|
||||||
$appstoreenabled = $this->config->getSystemValue('appstoreenabled', true);
|
$appstoreenabled = $this->config->getSystemValue('appstoreenabled', true);
|
||||||
|
$internetavailable = $this->config->getSystemValue('has_internet_connection', true);
|
||||||
|
|
||||||
if (!$appstoreenabled) {
|
if (!$appstoreenabled || !$internetavailable) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue