From b6704f99fefb6a747bc59da4d6d90fc51ac35ff7 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 19 May 2015 01:43:58 +0000 Subject: [PATCH] Add another attribute to the 'if statement' on provisioning. --- app/provision/resources/classes/provision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 9d1171a6d4..f7d9e494a0 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -383,7 +383,7 @@ include "root.php"; $mac_dash = substr($mac, 0,2).'-'.substr($mac, 2,2).'-'.substr($mac, 4,2).'-'.substr($mac, 6,2).'-'.substr($mac, 8,2).'-'.substr($mac, 10,2); //get the contacts array and add to the template engine - if (strlen($device_uuid) > 0 and strlen($domain_uuid) > 0) { + if (strlen($device_uuid) > 0 and strlen($domain_uuid) > 0 and $_SESSION['provision']['polycom_directory']['boolean'] == "true") { //get contacts from the database $sql = "select c.contact_organization, c.contact_name_given, c.contact_name_family, p.phone_number, p.phone_extension "; $sql .= "from v_contacts as c, v_contact_phones as p ";