Projet

Général

Profil

« Précédent | Suivant » 

Révision 60a5f9de

Ajouté par N0YB il y a presque 10 ans

Use count($array) where applicable, instead of a $rowIndex increment.

Voir les différences:

usr/local/www/system_usermanager.php
748 748
                                                                	<select name='keylen' class="formselect">
749 749
                                                                <?php
750 750
									$cert_keylens = array( "2048", "512", "1024", "4096");
751
																		$rowIndex = 0;
752 751
                                                                        foreach( $cert_keylens as $len):
753
																			$rowIndex++;
754 752
                                                                ?>
755 753
                                                                        <option value="<?=$len;?>"><?=$len;?></option>
756
                                                                <?php endforeach;
757
																if ($rowIndex == 0)
758
																	echo "<option></option>";
759
																?>
754
                                                                <?php
755
                                                                endforeach;
756
                                                                if (!count($cert_keylens))
757
                                                                	echo "<option></option>";
758
                                                                ?>
760 759
                                                                	</select>
761 760
                                                                	bits
762 761
                                                        	</td>

Formats disponibles : Unified diff