diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-23 14:51:09 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-23 14:51:09 +0000 |
commit | fd58fe0ae02d14fca16b9bd2e7f664c016a494c7 (patch) | |
tree | 44b0b788bb36761e779dcb29d495553378b0b192 | |
parent | ed7175092c81dafa54be7fec2fa91d0ad88aa780 (diff) |
Fix for ticket #168: Set a default value for extra_attrs on the Item_Model::thumb_tag()
-rw-r--r-- | core/models/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/models/item.php b/core/models/item.php index 4790e31a..9eaa2ed5 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -325,7 +325,7 @@ class Item_Model extends ORM_MPTT { * @param array $extra_attrs Extra attributes to add to the img tag * @return string */ - public function thumb_tag($extra_attrs, $max=null) { + public function thumb_tag($extra_attrs=array(), $max=null) { $width = $this->thumb_width; $height = $this->thumb_height; |