]> git.mxchange.org Git - friendica.git/commitdiff
found the cause of intermittent friend confirmation glitch (but not with 100% certainty)
authorFriendika <info@friendika.com>
Thu, 9 Dec 2010 22:03:28 +0000 (14:03 -0800)
committerFriendika <info@friendika.com>
Thu, 9 Dec 2010 22:03:28 +0000 (14:03 -0800)
boot.php

index c4bdb1187e6fc33a2ba89a630e84f80a9672c717..a92ceba3cc0520c472e6e5a0181ac191e3b69970 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -424,7 +424,10 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
 
        $a->set_curl_code(0);
 
-       $s = curl_exec($ch);
+       // don't let curl abort the entire application
+       // if it throws any errors.
+
+       $s = @curl_exec($ch);
 
        $http_code = intval(curl_getinfo($ch, CURLINFO_HTTP_CODE));
        $header = substr($s,0,strpos($s,"\r\n\r\n"));
@@ -484,7 +487,10 @@ function post_url($url,$params, $headers = null, &$redirects = 0) {
 
        $a->set_curl_code(0);
 
-       $s = curl_exec($ch);
+       // don't let curl abort the entire application
+       // if it throws any errors.
+
+       $s = @curl_exec($ch);
 
        $http_code = intval(curl_getinfo($ch, CURLINFO_HTTP_CODE));
        $header = substr($s,0,strpos($s,"\r\n\r\n"));