diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-09-05 13:00:19 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-09-05 13:00:19 +0000 |
| commit | 702e55377266d8b06d75f6711b25dca3a6487e68 (patch) | |
| tree | 11dfbe6c229124d9551cf38d7e644f935aec42c8 /includes/functions/functions_print.php | |
| parent | ab6010c770a2cd2c153ddfbf2c67c33645da6316 (diff) | |
| download | webtrees-702e55377266d8b06d75f6711b25dca3a6487e68.tar.gz webtrees-702e55377266d8b06d75f6711b25dca3a6487e68.tar.bz2 webtrees-702e55377266d8b06d75f6711b25dca3a6487e68.zip | |
When testing for concurrent edits, we must use DB time, not web time (which may be different)
Diffstat (limited to 'includes/functions/functions_print.php')
| -rw-r--r-- | includes/functions/functions_print.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index f2ffddefdf..897b9270b0 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -438,7 +438,7 @@ function print_header($title, $head="", $use_alternate_styles=true) { /* keep the session id when opening new windows */ var sessionid = "'.session_id().'"; var sessionname = "'.session_name().'"; - var accesstime = "'.time().'"; + var accesstime = '.WT_DB::prepare("SELECT UNIX_TIMESTAMP(NOW())")->fetchOne().'; var plusminus = new Array(); plusminus[0] = new Image(); plusminus[0].src = "'.$WT_IMAGES["plus"].'"; |
