From ef24c2178eee06aa62b534b99b5428983ad4ed7d Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 6 Aug 2015 15:30:43 -0500 Subject: [PATCH] Add an empty select option and finish moving to $this->destinations array. --- resources/classes/destinations.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index f9623fbe86..918db86b5f 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -77,14 +77,11 @@ class destinations { $result = $statement->fetchAll(PDO::FETCH_NAMED); unset($statement); - $switch['destinations'][$x]['result']['sql'] = $sql; - $switch['destinations'][$x]['result']['data'] = $result; + $this->destinations[$x]['result']['sql'] = $sql; + $this->destinations[$x]['result']['data'] = $result; } $x++; } - - //return the destination array - $this->destinations = $switch['destinations']; } /** @@ -158,6 +155,7 @@ class destinations { //print_r($switch); $response .= "