Part of the Furniture
I would hope not given I build the string a little differently in the WebUI, but there is probably an issue with hostnames when missing...Awesome. Will give it a run after dinner. Do you think the same problem exists on line 120?
echo "$DHCPCLIENTS" | sed 's/|/:/g;s/></\n/g;s/>/ /g;s/<//g' > /tmp/yazdhcp_clients_parsed.tmp
EDIT: a quick test saving the below worked OK for me (there's an extra comma creeping in but it escapes parsing errors, I'll still fix it)
EDIT2: this should be fixed too now...thanks for keeping me honest @dave14305