diff options
| author | uwe.tews@googlemail.com <uwe.tews@googlemail.com> | 2011-01-16 16:22:58 +0000 |
|---|---|---|
| committer | uwe.tews@googlemail.com <uwe.tews@googlemail.com> | 2011-01-16 16:22:58 +0000 |
| commit | d494d0db2259f85e55712dc1b401685cef796638 (patch) | |
| tree | 6b68600903f3e06d6fef4a4ac254298ab12a7fbf /libs/sysplugins | |
| parent | 7dfb27d32253b103964a192f1f130874b40870f7 (diff) | |
| download | smarty-d494d0db2259f85e55712dc1b401685cef796638.tar.gz smarty-d494d0db2259f85e55712dc1b401685cef796638.tar.bz2 smarty-d494d0db2259f85e55712dc1b401685cef796638.zip | |
-bugfix of Iterator object handling in internal _count() method
Diffstat (limited to 'libs/sysplugins')
| -rw-r--r-- | libs/sysplugins/smarty_internal_template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 2767f2bf..799d7944 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -864,7 +864,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { } elseif ($value instanceof Iterator) { $value->rewind(); if ($value->valid()) { - return 1; + return iterator_count($value); } } elseif ($value instanceof PDOStatement) { return $value->rowCount(); |
