Correct E_NOTICE on error when remote forking.
[phorkie.git] / src / phorkie / ForkRemote.php
index 3f6a4787ce818f89d4b37a940ffc5abcd0ff126e..76eec0589c3560193ec97f9aa3408a1fc0c4af4d 100644 (file)
@@ -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'