Formatting, and making a note about a bug
This commit is contained in:
parent
482d0052b3
commit
55688910d5
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue