From d326425ec79dee6e2ba2f443e85d3a9254a45219 Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Fri, 13 Oct 2017 21:13:56 -0500 Subject: [PATCH] Break from the loop when we run out of interfaces in console 'Assign Interfaces'. --- src/etc/inc/config.console.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/config.console.inc b/src/etc/inc/config.console.inc index e4488bbbb1..2b11c54791 100644 --- a/src/etc/inc/config.console.inc +++ b/src/etc/inc/config.console.inc @@ -165,8 +165,8 @@ EOD; $optif = array(); if ($lanif <> "") { - while (1) { - if ($optif[$i]) { + while (strlen(trim($ifsmallist)) > 0) { + if (!empty($optif[$i])) { $i++; } $io = $i + 1;