Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
TMSWhite committed Jul 20, 2012
2 parents c27f1ce + 9384ec7 commit a28788a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/statistics.php
Expand Up @@ -282,7 +282,7 @@
foreach ($survlangs as $survlang)
{
$language_options .= "\t<option value=\"{$survlang}\"";
if ($_SESSION['adminlang'] == $survlang)
if ($statlang == $survlang)
{
$language_options .= "selected=\"selected\" " ;
}
Expand Down
2 changes: 1 addition & 1 deletion common_functions.php
Expand Up @@ -4803,7 +4803,7 @@ function createPassword()

for ($i=0; $i<$password_length; $i++)
{
$passwd .= $pwchars[floor(rand(0,strlen($pwchars)-1))];
$passwd .= $pwchars[(int)floor(rand(0,strlen($pwchars)-1))];
}
return $passwd;
}
Expand Down

0 comments on commit a28788a

Please sign in to comment.