Status_dhcp_leases fix edit button for static entries with no IP address
Status_dhcp_leases fix edit button for static entries with no IP address

The edit button for static entries always has an index id=0 and thus pressing the edit button goes to (mostly) edit the wrong entry.
It was easier and made the code cleaner to get rid of the looping through the staticmap array every time trying to matach IP, MAC address... That data ('if' and 'staticmap_array_index') is easily gathered further up, the first time the staticmap array for each DHCP interface is traversed. I think this should also be more efficient when there are many static mapping entries.
Forum: https://forum.pfsense.org/index.php?topic=89072.msg493241#msg493241
jxmx/pfsense,phil-davis/pfsense,pfsense/pfsense,NOYB/pfsense,phil-davis/pfsense,ch1c4um/pfsense,jxmx/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,dennypage/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,brunostein/pfsense,dennypage/pfsense,brunostein/pfsense,pfsense/pfsense,NewEraCracker/pfsense,pfsense/pfsense,ptorsten/pfsense,brunostein/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,NOYB/pfsense,ptorsten/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,ptorsten/pfsense,NOYB/pfsense,dennypage/pfsense