aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_session.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php
index 352e7cd7d..6109456cc 100644
--- a/include/functions_session.inc.php
+++ b/include/functions_session.inc.php
@@ -18,17 +18,17 @@ function generate_key()
{
global $conf;
$md5 = md5( substr( microtime(), 2, 6 ).$conf['session_keyword'] );
- $init = "";
+ $init = '';
for ( $i = 0; $i < strlen( $md5 ); $i++ )
{
if ( is_numeric( $md5[$i] ) )
{
- $init.= "$md5[$i]";
+ $init.= $md5[$i];
}
}
$init = substr( $init, 0, 8 );
mt_srand( $init );
- $key = "";
+ $key = '';
for ( $i = 0; $i < $conf['session_id_size']; $i++ )
{
$c = mt_rand( 0, 2 );