Project

General

Profile

« Previous | Next » 

Revision 373a1e7b

Added by Ermal LUÇI about 15 years ago

Ticket #493. Set a value for checkboxes since the parsers marks empty tags(<tag/>) as arrays.

View differences:

usr/local/www/wizard.php
365 365
					$arraynum = "[" . $field['arraynum'] . "]";
366 366
				foreach ($field_split as $f)
367 367
					$field_conv .= "['" . $f . "']";
368
				$toeval = "if (isset(\$config" . $field_conv . $arraynum . ")) \$value = \$config" . $field_conv . $arraynum . ";";
368
				$toeval = "if (isset(\$config" . $field_conv . $arraynum . ")) { \$value = \$config" . $field_conv . $arraynum . "; if (empty(\$value)) \$value = true; }";
369 369
				eval($toeval);
370 370
		    }
371 371

  

Also available in: Unified diff