Skip to content

Commit

Permalink
Fixed issue #6340: Error "String offset cast occured" when adding use…
Browse files Browse the repository at this point in the history
…r and using PHP 5.4 or later
  • Loading branch information
c-schmitz committed Jul 20, 2012
1 parent 62cd572 commit 7cf77c0
Showing 1 changed file with 1 addition and 1 deletion.
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 7cf77c0

Please sign in to comment.