Revision 6bf58d65
src/usr/local/www/interfaces_ppps_edit.php | ||
---|---|---|
251 | 251 |
if (($_POST['type'] == 'l2tp') && (isset($_POST['secret']))) { |
252 | 252 |
$pconfig['secret'] = $_POST['secret']; |
253 | 253 |
} |
254 |
if (($_POST['type'] == "ppp") && (count($_POST['interfaces']) > 1)) { |
|
254 |
if (($_POST['type'] == "ppp") && is_array($_POST['interfaces']) && (count($_POST['interfaces']) > 1)) {
|
|
255 | 255 |
$input_errors[] = gettext("Multilink connections (MLPPP) using the PPP link type is not currently supported. Please select only one Link Interface."); |
256 | 256 |
} |
257 | 257 |
if ($_POST['provider'] && $_POST['null_service']) { |
Also available in: Unified diff
Fix PHP error when saving PPP settings without an interfaces selected