fixed bug with missing shell

This commit is contained in:
Serghey Rodin 2012-05-23 17:29:00 +03:00
commit d6e854e44f

View file

@ -53,9 +53,11 @@ document.v_edit_user.v_password.value = randomstring;
<?php <?php
foreach ($shells as $key => $value) { foreach ($shells as $key => $value) {
echo "\t\t\t\t<option value=\"".$value."\""; echo "\t\t\t\t<option value=\"".$value."\"";
if ((!empty($v_shell)) && ( $value == $v_shell)){ $svalue = "'".$value."'";
if (( $value == $v_shell ) || ($svalue == $v_shell )){
echo 'selected' ; echo 'selected' ;
} }
echo ">".$value."</option>\n"; echo ">".$value."</option>\n";
} }
?> ?>