From fe81138f2a7fe3d05fe2941e82f207069439046a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 6 Apr 2015 09:30:30 +0000 Subject: [PATCH] One final adjustment to get it all working again. --- app/provision/resources/classes/provision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 0fa615935c..ada9a4eb45 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -139,7 +139,7 @@ include "root.php"; $file = $this->file; //get the device template - if (isset($_REQUEST['template'])) { + if (strlen($_REQUEST['template']) > 0) { $device_template = $_REQUEST['template']; $search = array('..', '/./'); $device_template = str_replace($search, "", $device_template); @@ -174,7 +174,7 @@ include "root.php"; } //check to see if the mac_address exists in devices - if (strlen($_REQUEST['user_id']) > 0 || strlen($_REQUEST['userid']) > 0) { + if (strlen($_REQUEST['user_id']) == 0 || strlen($_REQUEST['userid']) == 0) { if ($this->mac_exists($mac)) { //get the device_template if (strlen($device_template) == 0) {