You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2016/07/18 17:21:58 UTC

svn commit: r1753272 - /vcl/trunk/web/.ht-inc/utils.php

Author: jfthomps
Date: Mon Jul 18 17:21:58 2016
New Revision: 1753272

URL: http://svn.apache.org/viewvc?rev=1753272&view=rev
Log:
VCL-956 - display reservation times in user's own timezone

utils.php: modified getDojoHTML: added check for PHP session being started before checking for tzoffset being set in $_SESSION; this was generating a PHP notice

Modified:
    vcl/trunk/web/.ht-inc/utils.php

Modified: vcl/trunk/web/.ht-inc/utils.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/utils.php?rev=1753272&r1=1753271&r2=1753272&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/utils.php (original)
+++ vcl/trunk/web/.ht-inc/utils.php Mon Jul 18 17:21:58 2016
@@ -13058,7 +13058,7 @@ function getDojoHTML($refresh) {
 	$rt = '';
 	$jslocale = strtolower(str_replace('_', '-', $locale));
 	$rt .= "<script type=\"text/javascript\">\n";
-	if(array_key_exists('tzoffset', $_SESSION['persistdata']))
+	if(session_status() === PHP_SESSION_ACTIVE && array_key_exists('tzoffset', $_SESSION['persistdata']))
 		$rt .= "   var tzoffset = {$_SESSION['persistdata']['tzoffset']};\n";
 	else
 		$rt .= "   var tzoffset = 'unset';\n";