From 4332c4745a046d309b0240565a7921faa983b9a1 Mon Sep 17 00:00:00 2001
From: h3rj4n <h3rj4n@464618.no-reply.drupal.org>
Date: Thu, 14 Jun 2012 11:05:18 +0200
Subject: [PATCH] Fixed the rsort parameter error

---
 galleria.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/galleria.module b/galleria.module
index 44b04de..1792e6c 100644
--- a/galleria.module
+++ b/galleria.module
@@ -255,7 +255,7 @@ function galleria_get_themes($nocache = FALSE) {
 
       // Search for the theme JavaScript file, minified version first
       $js = glob($path . $theme . '/*.min.js');
-      if (count($js) == 0)
+      if (count($js) == 0 || $js == false)
         $js = glob($path . $theme . '/*.js');
 
       // Sort by filename to (hopefully) get the newest version.
-- 
1.7.5.4

