Foppe Hemminga 5 éve
szülő
commit
006779195c
1 módosított fájl, 1 hozzáadás és 6 törlés
  1. 1 6
      snippets.php

+ 1 - 6
snippets.php

@@ -195,14 +195,9 @@ HTML;
 	print( "</pre>" );
 	foreach ( $properties as $property ) {
 		$selected = '';
-		if ( is_array( $property ) && in_array( $property, $player_properties[0] ) ) {
+		if ( 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