Author: sevein
Date: Mon May 14 10:32:17 2012
New Revision: 11667

Log:
Force type array when only one single element

Modified:
   branches/2.0/apps/qubit/modules/search/templates/_facet.php

Modified: branches/2.0/apps/qubit/modules/search/templates/_facet.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/templates/_facet.php Mon May 14 
00:02:46 2012        (r11666)
+++ branches/2.0/apps/qubit/modules/search/templates/_facet.php Mon May 14 
10:32:17 2012        (r11667)
@@ -15,7 +15,7 @@
 
       <?php if (isset($pager->facets[$facet])): ?>
         <?php foreach ($pager->facets[$facet]['terms'] as $id => $term): ?>
-          <li <?php if (in_array($id, @$filters[$facet])) echo 
'class="active"' ?>>
+          <li <?php if (in_array($id, (array)@$filters[$facet])) echo 
'class="active"' ?>>
             <?php echo link_to(
               __($term['term']).'<span>'.$term['count'].'</span>',
               array(

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to