Fized problem with $haveMessages view parameter.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Sep 2018 14:11:59 +0000 (10:11 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Sep 2018 14:11:59 +0000 (10:11 -0400)
models/front/registrations/list.php

index 58675c4..3730b56 100755 (executable)
         // Compile template data
         $templateData = array(
             'page'              => 'register',
-            'haveMessages'      => count($messages),
+            'haveMessages'      => is_array($messages) && count($messages) > 0,
             'messages'          => $messages,
             'regEventsCount'    => $regEventsCount,
             'haveRegEvents'     => $haveRegEvents,