From 58e64acd9bf8edf7ee08ad802a28671322cbfe34 Mon Sep 17 00:00:00 2001
From: kaidjohnson <kaidjohnson@1780846.no-reply.drupal.org>
Date: Sat, 23 May 2015 18:31:44 -0400
Subject: [PATCH] Issue #2153347 by kaidjohnson:
 $vars['options']['attributes']['class'] expected to be an array in
 theme_apachesolr_sort_link(). String set

---
 apachesolr.module | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/apachesolr.module b/apachesolr.module
index b7556f3..9f063d9 100644
--- a/apachesolr.module
+++ b/apachesolr.module
@@ -2809,12 +2809,7 @@ function theme_apachesolr_sort_link($vars) {
     $icon = ' ' . theme('tablesort_indicator', array('style' => $vars['direction']));
   }
   if ($vars['active']) {
-    if (isset($vars['options']['attributes']['class'])) {
-      $vars['options']['attributes']['class'] .= ' active';
-    }
-    else {
-      $vars['options']['attributes']['class'] = 'active';
-    }
+    $vars['options']['attributes']['class'][] = 'active';
   }
   return $icon . apachesolr_l($vars['text'], $vars['path'], $vars['options']);
 }
-- 
1.8.5.2 (Apple Git-48)

