Formatting, and making a note about a bug

This commit is contained in:
paul 2006-12-08 04:33:02 +00:00
parent 482d0052b3
commit 55688910d5
1 changed files with 6 additions and 3 deletions

View File

@ -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]);
}
}