From 062ead3bca7c8a5d3de5ecac11175151485de345 Mon Sep 17 00:00:00 2001 From: Matt Stephens Date: Mon, 13 Mar 2017 12:01:50 +0000 Subject: [PATCH] Ensure the array keys actually exist! --- src/Omniphx/Forrest/Client.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Omniphx/Forrest/Client.php b/src/Omniphx/Forrest/Client.php index bdfb987..e763b09 100644 --- a/src/Omniphx/Forrest/Client.php +++ b/src/Omniphx/Forrest/Client.php @@ -703,8 +703,12 @@ private function setOptions($arguments) { $options = []; if (empty($arguments)) return $options; - $this->setArgument($arguments[0], $options); - $this->setArgument($arguments[1], $options); + if(!empty($arguments[0])) { + $this->setArgument($arguments[0], $options); + } + if(!empty($arguments[1])) { + $this->setArgument($arguments[1], $options); + } return $options; }