From 305bf858c1ef44b91913b06291b7ae90c9abe304 Mon Sep 17 00:00:00 2001 From: messju Date: Wed, 29 Sep 2004 07:23:45 +0000 Subject: [PATCH] switched from @count() to !empty() . this was pointed out a few times by a few people with buggy error-handlers --- libs/Smarty.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index d019b313..5d1e1f28 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1168,7 +1168,7 @@ class Smarty require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php'); if (smarty_core_read_cache_file($_params, $this)) { $_smarty_results = $_params['results']; - if (@count($this->_cache_info['insert_tags'])) { + if (!empty($this->_cache_info['insert_tags'])) { $_params = array('plugins' => $this->_cache_info['insert_tags']); require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); smarty_core_load_plugins($_params, $this); @@ -1176,7 +1176,7 @@ class Smarty require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); $_smarty_results = smarty_core_process_cached_inserts($_params, $this); } - if (@count($this->_cache_info['cache_serials'])) { + if (!empty($this->_cache_info['cache_serials'])) { $_params = array('results' => $_smarty_results); require_once(SMARTY_CORE_DIR . 'core.process_compiled_include.php'); $_smarty_results = smarty_core_process_compiled_include($_params, $this);