X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=19cfd71a8aad7343b499983c1bb0b39064de9fa1;hb=6a05112d98155022b1a024eb29add34cf34e9220;hp=fb65eff22c8e4503de21ccdcf2453b2a95671ac9;hpb=50a46c2c6e6cfe772cdc5d438b7cf0b41e4ff9d8;p=friendica.git diff --git a/boot.php b/boot.php index fb65eff22c..19cfd71a8a 100644 --- a/boot.php +++ b/boot.php @@ -734,6 +734,11 @@ if(! class_exists('App')) { function init_pagehead() { $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000); + + // If the update is "deactivated" set it to the highest integer number (~24 days) + if ($interval < 0) + $interval = 2147483647; + if($interval < 10000) $interval = 40000;