From fd58fe0ae02d14fca16b9bd2e7f664c016a494c7 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 23 Mar 2009 14:51:09 +0000 Subject: Fix for ticket #168: Set a default value for extra_attrs on the Item_Model::thumb_tag() --- core/models/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/models') 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; -- cgit v1.2.3