summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-04-08 22:41:20 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-04-08 22:41:20 +0200
commit46722d828233f1920c54e36d3225c9a667d91258 (patch)
treeb1ff4822796005f87f27cb07ffea958c1de44c96 /lib
parentccde0212b193a71a258f244424fa2293f08831fb (diff)
downloadnextcloud-server-46722d828233f1920c54e36d3225c9a667d91258.tar.gz
nextcloud-server-46722d828233f1920c54e36d3225c9a667d91258.zip
fixes #2789 - no internet connectivity check if there is non on purpose
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 6630c6a9e1a..37fb1bd9d06 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -635,6 +635,11 @@ class OC_Util {
*/
public static function isinternetconnectionworking() {
+ // in case there is no internet connection on purpose there is no need to display a warning
+ if (!\OC_Config::getValue("has_internet_connection", true)) {
+ return true;
+ }
+
// try to connect to owncloud.org to see if http connections to the internet are possible.
$connected = @fsockopen("www.owncloud.org", 80);
if ($connected) {