summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2014-12-17 01:10:20 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2014-12-17 01:10:20 +0100
commit69bad8b30c9bc0a32cf4a13f75aaca3d90bf5058 (patch)
treee536c2b5d0f9399c503f52973ca02fc5201df111 /src/node/db
parenta2d22a576407a2030a24f8d959561fc75c3c8a3c (diff)
downloadetherpad-lite-69bad8b30c9bc0a32cf4a13f75aaca3d90bf5058.zip
fix typo in addSavedRevisions
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/Pad.js2
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;
}
}