]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_network.php
Optimized version of the possibility to reload the content of the network page only...
[friendica.git] / mod / update_network.php
index ff668ab353e0cbf4e20e3a0ae951e4eb78536474..9c6e45ca418a424a4cc17bbdf14d97045ea009d2 100644 (file)
@@ -13,12 +13,9 @@ function update_network_content(&$a) {
        echo "<!DOCTYPE html><html><body>\r\n";
        echo (($_GET['msie'] == 1) ? '<div>' : '<section>');
 
-       $no_auto_update = get_pconfig($profile_uid, "system", "no_auto_update");
-       if (($no_auto_update <= 0) OR ($_GET['top'] == 1)) {
+       if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1))
                $text = network_content($a,$profile_uid);
-               if ($no_auto_update < 0)
-                       set_pconfig($profile_uid, "system", "no_auto_update", 1);
-       } else
+       else
                $text = "";
 
        $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";