Project

General

Profile

« Previous | Next » 

Revision 17e62666

Added by A FL almost 7 years ago

fix failed implode when auth_server2 is empty

View differences:

src/usr/local/www/services_captiveportal.php
345 345
		if ($_POST['auth_method'] != 'none') {
346 346
			$newcp['auth_server'] = implode(",", $_POST['auth_server']);
347 347
		}
348
		$newcp['auth_server2'] = implode(",", $_POST['auth_server2']);
348
		$newcp['auth_server2'] = '';
349
		if (!empty($_POST['auth_server2']) && $_POST['auth_method'] === 'authserver') {
350
			$newcp['auth_server2'] = implode(",", $_POST['auth_server2']);
351
		}
349 352
		$newcp['radacct_server'] = $_POST['radacct_server'];
350 353
		$newcp['localauth_priv'] = isset($_POST['localauth_priv']);
351 354
		$newcp['radacct_enable'] = $_POST['radacct_enable'] ? true : false;

Also available in: Unified diff