mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
-bugfix of Iterator object handling in internal _count() method
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
===== SVN trunk =====
|
||||
16/01/2011
|
||||
-bugfix of ArrayAccess object handling in internal _count() method
|
||||
-bugfix of Iterator object handling in internal _count() method
|
||||
|
||||
14/01/2011
|
||||
-bugfix removed memory leak while processing compileAllTemplates
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user