Check if current pony is hidden by checking if property hidden is set

Avoids "Undefined index: hidden" errors
This commit is contained in:
Tailszefox 2019-08-06 04:22:34 +02:00
parent 2536052505
commit fe7426f7d1

View file

@ -99,7 +99,7 @@ else
{ {
?><optgroup label="<?php echo $properties ?>"></optgroup><?php ?><optgroup label="<?php echo $properties ?>"></optgroup><?php
} }
else if(!$properties["hidden"]) else if(isset($properties["hidden"]) === FALSE)
{ {
?><option value="<?php echo $id ?>" <?php if($from == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php ?><option value="<?php echo $id ?>" <?php if($from == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php
} }
@ -117,7 +117,7 @@ else
{ {
?><optgroup label="<?php echo $properties ?>"></optgroup><?php ?><optgroup label="<?php echo $properties ?>"></optgroup><?php
} }
else if(!$properties["hidden"]) else if(isset($properties["hidden"]) === FALSE)
{ {
?><option value="<?php echo $id ?>" <?php if($to == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php ?><option value="<?php echo $id ?>" <?php if($to == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php
} }