mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
Merge pull request #1943 from ether/fix/listAllPads-fix
Pad list cache: You can't change the cache if it's not initiated
This commit is contained in:
commit
a120d78b7e
1 changed files with 1 additions and 1 deletions
|
@ -60,10 +60,10 @@ var padList = {
|
||||||
{
|
{
|
||||||
if(ERR(err, cb)) return;
|
if(ERR(err, cb)) return;
|
||||||
if(dbData != null){
|
if(dbData != null){
|
||||||
|
padList.initiated = true
|
||||||
dbData.forEach(function(val){
|
dbData.forEach(function(val){
|
||||||
padList.addPad(val.replace(/pad:/,""),false);
|
padList.addPad(val.replace(/pad:/,""),false);
|
||||||
});
|
});
|
||||||
padList.initiated = true
|
|
||||||
cb && cb()
|
cb && cb()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue