]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Silence the NOTICE log messages on port not defined, we deal with
authorMarcel van der Boom <marcel@hsdev.com>
Tue, 8 Sep 2009 19:48:51 +0000 (21:48 +0200)
committerCraig Andrews <candrews@integralblue.com>
Sat, 12 Sep 2009 00:49:24 +0000 (20:49 -0400)
that properly, and most of the time it is indeed not define

extlib/OAuth.php

index fd485355459843c2bbf41d6240d687423d56d6f9..648627b57637f34ed93ea66d226c9244cc396931 100644 (file)
@@ -327,7 +327,7 @@ class OAuthRequest {/*{{{*/
   public function get_normalized_http_url() {/*{{{*/
     $parts = parse_url($this->http_url);
 
-    $port = @$parts['port'];
+    $port = isset($parts['port']) ? $parts['port'] : null;
     $scheme = $parts['scheme'];
     $host = $parts['host'];
     $path = @$parts['path'];