Project

General

Profile

« Previous | Next » 

Revision 87d2b746

Added by Christopher Cope about 2 years ago

CP fix check for used mac db content. Fixes #14446

View differences:

src/etc/inc/captiveportal.inc
2350 2350
function captiveportal_write_usedmacs_db($usedmacs) {
2351 2351
	global $g, $cpzone;
2352 2352

  
2353
	if (!is_array($usedmacs) ||
2354
	    empty(trim($usedmacs))) {
2353
	if (!is_array($usedmacs)) {
2355 2354
		$usedmacs = [];
2356 2355
	}
2357 2356
	$cpumaclck = lock("captiveusedmacs{$cpzone}", LOCK_EX);

Also available in: Unified diff