From: Justin J. Novack Date: Sun, 7 Oct 2012 20:32:08 +0000 (-0400) Subject: Correct E_NOTICE on error when remote forking. X-Git-Tag: v0.4.0~107 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/3c0605419d071c567f800148d2343ad6a85c7735 Correct E_NOTICE on error when remote forking. --- diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 3f6a478..76eec05 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -23,7 +23,7 @@ class ForkRemote public function parse() { $arUrl = parse_url($this->url); - $scheme = $arUrl['scheme'] ?: ''; + $scheme = isset($arUrl['scheme']) ? $arUrl['scheme'] : ''; if ($scheme == 'https' && isset($arUrl['host']) && $arUrl['host'] == 'gist.github.com'