Project

General

Profile

« Previous | Next » 

Revision e327358b

Added by Ermal LUÇI over 11 years ago

Properly use key here.

View differences:

usr/local/www/services_captiveportal_vouchers.php
285 285
					$url = "http://{$newvoucher['vouchersyncdbip']}";
286 286

  
287 287
				$execcmd  = <<<EOF
288
				\$toreturn['voucher'] = \$config['voucher'][$cpzone];
288
				\$toreturn = array();
289
				\$toreturn['voucher'] = \$config['voucher']['$cpzone'];
289 290
				unset(\$toreturn['vouchersyncport'], \$toreturn['vouchersyncpass'], \$toreturn['vouchersyncusername'], \$toreturn['vouchersyncdbip']);
290 291

  
291 292
EOF;

Also available in: Unified diff