mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
firmware: don't want empty lines
This commit is contained in:
parent
39c91a4150
commit
de984e2f23
@ -816,7 +816,9 @@ function system_webgui_start()
|
||||
$pkg_sample = explode(PHP_EOL, $pkg_sample);
|
||||
$pkg_config = '';
|
||||
foreach ($pkg_sample as $pkg_line) {
|
||||
if (!strncasecmp($pkg_line, ' url:', 6)) {
|
||||
if (!strlen($pkg_line)) {
|
||||
continue;
|
||||
} elseif (!strncasecmp($pkg_line, ' url:', 6)) {
|
||||
$pkg_line = sprintf(
|
||||
' url: "pkg+%s/${ABI}/%s",',
|
||||
$pkg_mirror,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user