silenced two notices acces HTTP_SERVER_VARS

This commit is contained in:
messju
2003-09-11 07:25:32 +00:00
parent 1676bd29de
commit 430b084783

View File

@@ -1204,7 +1204,7 @@ class Smarty
} }
if (!$this->debugging && $this->debugging_ctrl == 'URL' if (!$this->debugging && $this->debugging_ctrl == 'URL'
&& strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) { && @strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) {
// enable debugging from URL // enable debugging from URL
$this->debugging = true; $this->debugging = true;
} }
@@ -1266,7 +1266,7 @@ class Smarty
$_smarty_results .= smarty_core_display_debug_console($_params, $this); $_smarty_results .= smarty_core_display_debug_console($_params, $this);
} }
if ($this->cache_modified_check) { if ($this->cache_modified_check) {
$_last_modified_date = substr($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'], 0, strpos($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3); $_last_modified_date = @substr($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'], 0, strpos($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3);
$_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT'; $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT';
if (@count($this->_cache_info['insert_tags']) == 0 if (@count($this->_cache_info['insert_tags']) == 0
&& !$this->_cache_serials && !$this->_cache_serials