Commit 34604d5a authored by Franco Fichtner's avatar Franco Fichtner

dhcp: crash report and stray array_shift() for prefixes.php

parent e6fa852e
......@@ -89,7 +89,8 @@ foreach ($clog as $line) {
// echo "remove routes\n";
if (count($expires) > 0) {
foreach ($expires as $prefix) {
echo "/sbin/route delete -inet6 {$prefix['prefix']}\n";
array_shift($expires);
if (isset($prefix['prefix'])) {
echo "/sbin/route delete -inet6 {$prefix['prefix']}\n";
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment