diff options
author | webzwo0i <webzwo0i@c3d2.de> | 2014-12-17 01:10:20 +0100 |
---|---|---|
committer | webzwo0i <webzwo0i@c3d2.de> | 2014-12-17 01:10:20 +0100 |
commit | 69bad8b30c9bc0a32cf4a13f75aaca3d90bf5058 (patch) | |
tree | e536c2b5d0f9399c503f52973ca02fc5201df111 /src/node/db | |
parent | a2d22a576407a2030a24f8d959561fc75c3c8a3c (diff) | |
download | etherpad-lite-69bad8b30c9bc0a32cf4a13f75aaca3d90bf5058.zip |
fix typo in addSavedRevisions
Diffstat (limited to 'src/node/db')
-rw-r--r-- | src/node/db/Pad.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 2791334b..94049ff7 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -690,7 +690,7 @@ Pad.prototype.isPasswordProtected = function isPasswordProtected() { Pad.prototype.addSavedRevision = function addSavedRevision(revNum, savedById, label) { //if this revision is already saved, return silently for(var i in this.savedRevisions){ - if(this.savedRevisions.revNum === revNum){ + if(this.savedRevisions[i] && this.savedRevisions[i].revNum === revNum){ return; } } |