From: Marcel van der Boom Date: Tue, 8 Sep 2009 19:48:51 +0000 (+0200) Subject: Silence the NOTICE log messages on port not defined, we deal with X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a73162d3eb237046f89ab21e17a9424ac47cd66d;p=quix0rs-gnu-social.git Silence the NOTICE log messages on port not defined, we deal with that properly, and most of the time it is indeed not define --- diff --git a/extlib/OAuth.php b/extlib/OAuth.php index fd48535545..648627b576 100644 --- a/extlib/OAuth.php +++ b/extlib/OAuth.php @@ -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'];