aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/ForkRemote.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php
index 76eec05..78c3caa 100644
--- a/src/phorkie/ForkRemote.php
+++ b/src/phorkie/ForkRemote.php
@@ -22,6 +22,11 @@ class ForkRemote
public function parse()
{
+ if ($this->url == '') {
+ $this->error = 'Empty fork URL';
+ return false;
+ }
+
$arUrl = parse_url($this->url);
$scheme = isset($arUrl['scheme']) ? $arUrl['scheme'] : '';