No need to throw error on empty folder
This commit is contained in:
parent
bfdcbd831b
commit
19d268e198
1 changed files with 2 additions and 1 deletions
|
@ -845,7 +845,8 @@ Scholar.Objects = new function(){
|
|||
var tree = Scholar.DB.query(sql);
|
||||
|
||||
if (!tree){
|
||||
throw ('treeStructure is empty');
|
||||
Scholar.debug('No children of folder ' + parent, 5);
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
_load('all');
|
||||
|
|
Loading…
Reference in a new issue