commit 365910848c076e804ec0ca41e3d5342349948a1b
parent 9d10609e7edd201bda3d36ed37bd55d2a04fb4a5
Author: Brian C. Lane <bcl@ibrianlane.com>
Date:   Sun, 25 Jan 2015 07:54:33 -0800
Fix 1-off error in screen array and undefined variable
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/HMS/source/appMediaServer.brs b/HMS/source/appMediaServer.brs
@@ -38,10 +38,11 @@ Function mediaServer( url As String, has_keystore As Boolean ) As Object
     grid.SetListNames(titles)
 
     ' Hold all the movie objects
-    screen = CreateObject("roArray", categories.Count(), false)
+    screen = CreateObject("roArray", categories.Count()+1, false)
 
     ' Add as utility row
-    grid.SetContentList(0, getUtilRow(url))
+    search = getUtilRow(url)
+    grid.SetContentList(0, search)
     screen.Push(search)
 
     ' run the grid