cvs: smarty /libs Smarty.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1096442629@cvsserver> |
messju Wed Sep 29 03:23:49 2004 EDT
Modified files:
/smarty/libs Smarty.class.php
Log:
switched from @count() to !empty() . this was pointed out a few times
by a few people with buggy error-handlers
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.502&r2=1.503&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.502 smarty/libs/Smarty.class.php:1.503
--- smarty/libs/Smarty.class.php:1.502 Tue Sep 28 03:04:42 2004
+++ smarty/libs/Smarty.class.php Wed Sep 29 03:23:45 2004
@@ -30,7 +30,7 @@
* @version 2.6.6-dev
*/
-/* $Id: Smarty.class.php,v 1.502 2004/09/28 07:04:42 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.503 2004/09/29 07:23:45 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1168,7 +1168,7 @@
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 @@
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);
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php