From 55688910d509617b5a507f1973c407b41063b4bc Mon Sep 17 00:00:00 2001
From: paul <paul@cfc7b370-4200-0410-a6e3-cb6bdb053afe>
Date: Fri, 8 Dec 2006 04:33:02 +0000
Subject: [PATCH] Formatting, and making a note about a bug

---
 campcaster/src/modules/storageServer/var/BasicStor.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/campcaster/src/modules/storageServer/var/BasicStor.php b/campcaster/src/modules/storageServer/var/BasicStor.php
index c11fa0baa..49422cb70 100644
--- a/campcaster/src/modules/storageServer/var/BasicStor.php
+++ b/campcaster/src/modules/storageServer/var/BasicStor.php
@@ -1224,10 +1224,10 @@ class BasicStor extends Alib {
 	                    require_once("LsPlaylist.php");
 	                    $ac = $r = LsPlaylist::recallByGunid($this, $it['gunid']);
 	                    switch ($type) {
-	                        case"smil":
+	                        case "smil":
 	                            $string = $r = $ac->outputToSmil();
 	                            break;
-	                        case"m3u":
+	                        case "m3u":
 	                            $string = $r = $ac->outputToM3u();
 	                            break;
 	                        default:
@@ -1474,6 +1474,7 @@ class BasicStor extends Alib {
      * @param int $id
      * 		Local ID of folder
      * @return array
+     * @todo THERE IS A BUG IN THIS FUNCTION
      */
     public function bsListFolder($id)
     {
@@ -1503,7 +1504,9 @@ class BasicStor extends Alib {
                 return $listArr[$i]['type'];
             }
             $listArr[$i]['gunid'] = $gunid;
-            if (StoredFIle::_getState($gunid) == 'incomplete') {
+            
+            // THE BUG IS HERE - "_getState()" IS NOT A STATIC FUNCTION!
+            if (StoredFile::_getState($gunid) == 'incomplete') {
                 unset($listArr[$i]);
             }
         }