*/
public function tag($localId, $tags, $owner, $content_type = 'image')
{
+ if (empty($tags)) {
+ return;
+ }
+
if (!is_array($tags)) {
$tags = $this->_tagger->splitTags($tags);
}
$gallery->set('name', $gallery_name);
}
$gallery->set('desc', $gallery_desc);
- $gallery->setTags(explode(',', $gallery_tags));
+ $gallery->setTags(!empty($gallery_tags) ? explode(',', $gallery_tags) : '');
//$gallery->set('style', $style);
$gallery->set('slug', $gallery_slug);
$gallery->set('age', $gallery_age);
'horde.warning');
$actionId = 'add';
$title = _("Adding A New Gallery");
- break;
}
// Create the new gallery.