]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_network.php
Merge pull request #3743 from MrPetovan/task/update-languagedetect
[friendica.git] / mod / update_network.php
index c6d33132cc7557d33eae48a3681c0f8ac713efce..ec3494fb7c1dd585d405d5a525476c47d11a06d5 100644 (file)
@@ -2,10 +2,12 @@
 
 // See update_profile.php for documentation
 
+use Friendica\App;
+
 require_once("mod/network.php");
 require_once("include/group.php");
 
-function update_network_content(App &$a) {
+function update_network_content(App $a) {
 
        $profile_uid = intval($_GET["p"]);
 
@@ -13,7 +15,7 @@ function update_network_content(App &$a) {
        echo "<!DOCTYPE html><html><body>\r\n";
        echo "<section>";
 
-       if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET["force"] == 1)) {
+       if (!get_pconfig($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) {
                $text = network_content($a, $profile_uid);
        } else {
                $text = "";