|
|
@@ -199,9 +199,14 @@ HTML;
|
|
|
*/
|
|
|
foreach ( $properties as $property ) {
|
|
|
$selected = '';
|
|
|
- if ( in_array( $property, $player_properties[0] ) ) {
|
|
|
+ if ( is_array( $property ) && in_array( $property, $player_properties[0] ) ) {
|
|
|
$selected = ' selected';
|
|
|
}
|
|
|
+ if ( ! is_array( $property ) ) {
|
|
|
+ if ( $property == $player_properties[0] ) {
|
|
|
+ $selected = ' selected';
|
|
|
+ }
|
|
|
+ }
|
|
|
$snippets[3] .= "\t\t\t\t<option${selected}>${property}</option>\n";
|
|
|
};
|
|
|
$snippets[3] .= <<<HTML
|