Fix for if no view template set in shortcode
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Nov 2016 20:20:48 +0000 (15:20 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Nov 2016 20:21:16 +0000 (15:21 -0500)
Need to make sure the view template has something.

models/front/events/detail.php

index 6ca9e6b..fd402a2 100644 (file)
@@ -133,7 +133,7 @@ class GlmMembersFront_events_detail extends GlmMembersFront_events_baseAction
             $categoryEvents = array();
             break;
         }
-        if ( isset ( $actionData['request']['template'] ) ) {
+        if ( isset ( $actionData['request']['template'] ) && $actionData['request']['template'] ) {
             $view = $actionData['request']['template'];
         }
         $permalink = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";