fixed bug with missing package

This commit is contained in:
Serghey Rodin 2012-05-23 17:33:59 +03:00
commit c48a1a97c4
2 changed files with 3 additions and 1 deletions

View file

@ -104,6 +104,7 @@ U_MAIL_ACCOUNTS='$U_MAIL_ACCOUNTS'
U_DATABASES='$U_DATABASES'
U_CRON_JOBS='$U_CRON_JOBS'
U_BACKUPS='$U_BACKUPS'
TIME='$TIME'
DATE='$DATE'" > $USER_DATA/user.conf
}

View file

@ -37,7 +37,8 @@ document.v_edit_user.v_password.value = randomstring;
<?php
foreach ($packages as $key => $value) {
echo "\t\t\t\t<option value=\"".$key."\"";
if ((!empty($v_package)) && ( $key == $v_package)){
$skey = "'".$key."'";
if (( $key == $v_package ) || ( $skey == $v_package)){
echo 'selected' ;
}
echo ">".$key."</option>\n";