Commit 0d0dfd5b authored by git's avatar git Committed by frjo

Issue #1976356 by thesame-, allez: Views trigger returns empty popup

parent 5cf66dae
......@@ -167,6 +167,11 @@ If you would like to have the characters %5B and %5D please use the html entity
$gallery = strtr($this->options['custom_gid'] , $tokens);
$gallery = drupal_html_class($gallery);
// Return nothing if popup is empty.
if (empty($popup)) {
return;
}
$width = $this->options['width'] ? $this->options['width'] : '';
$height = $this->options['height'] ? $this->options['height'] : '';
$gallery_id = !empty($gallery) ? $gallery : ($this->options['gid'] ? 'gallery-' . $this->view->name : '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment