From 601bdab8e19a54eb0ebb5ec516a66243882c53cc Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 21 Nov 2013 20:58:53 +0100 Subject: [PATCH] Mass tag: don't show buttons if no tag specified --- src/Views/post-small.phtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Views/post-small.phtml b/src/Views/post-small.phtml index 6152259b..02f8992b 100644 --- a/src/Views/post-small.phtml +++ b/src/Views/post-small.phtml @@ -1,5 +1,6 @@ context->post->type))] ?> -context->source) and $this->context->source == 'mass-tag'): ?> +context->source) and $this->context->source == 'mass-tag' and !empty($this->context->additionalInfo)) ?> + context->additionalInfo, array_map(function($x) { return $x->name; }, $this->context->post->sharedTag))): ?> @@ -7,7 +8,7 @@
- context->source) and $this->context->source == 'mass-tag'): ?> +