diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-05-18 21:42:32 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-05-18 21:42:32 +0000 |
commit | aac81a8a382f7ec527e22d6dee959400d77e1a21 (patch) | |
tree | b51b5180e85326af0cfebf88bcad005ba93d5118 /include/functions_session.inc.php | |
parent | 2c2af65b6a95e20ba9ca49139683d2d150edb1b6 (diff) |
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@14 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_session.inc.php')
-rw-r--r-- | include/functions_session.inc.php | 6 |
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 ); |