From 2abfec49c6d28b25f56e4a0487670f6b41bf3424 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Sat, 16 Mar 2013 08:56:58 -0300 Subject: Initialize array to silence warnings on foreach --- usr/local/sbin/prefixes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/local/sbin/prefixes.php b/usr/local/sbin/prefixes.php index af915e3..b0920cb 100644 --- a/usr/local/sbin/prefixes.php +++ b/usr/local/sbin/prefixes.php @@ -5,6 +5,7 @@ if(!file_exists($leases_file)) { exit(1); } +$duid_arr = array(); foreach(file($leases_file) as $line) { // echo "$line"; if(preg_match("/^(ia-[np][ad])[ ]+\"(.*?)\"/i ", $line, $duidmatch)) { -- cgit v1.1