From 4584292ffdf9857626e31515eb913f8881260095 Mon Sep 17 00:00:00 2001
From: neoteknic <neoteknic@gmail.com>
Date: Sun, 3 Dec 2017 12:43:15 +0100
Subject: [PATCH] Fix notice if no mac address returned by the api.

---
 bin/phue-bridge-finder | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/phue-bridge-finder b/bin/phue-bridge-finder
index d3ab8f9..358a175 100755
--- a/bin/phue-bridge-finder
+++ b/bin/phue-bridge-finder
@@ -31,6 +31,7 @@ foreach ($bridges as $key => $bridge) {
     echo "\tBridge #", ++$key, "\n";
     echo "\t\tID: ", $bridge->id, "\n";
     echo "\t\tInternal IP Address: ", $bridge->internalipaddress, "\n";
-    echo "\t\tMAC Address: ", $bridge->macaddress, "\n";
+    if(isset($bridge->macaddress))
+        echo "\t\tMAC Address: ", $bridge->macaddress, "\n";
     echo "\n";
 }