summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-02-22 18:44:26 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-02-22 18:44:26 +0000
commitef02ec4c8937a755a511fbeb75e3f02b21aa9338 (patch)
tree46142a7a756021e5d0c6aa5fc1e9731c87caf7e9
parent8c933e7b3eb5cf855b603429d0d4cfb7da1730e5 (diff)
undefined protection for design doc attachments in futon
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746798 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--share/www/script/jquery.couch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index c912a4bd..0c55aa49 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -192,7 +192,7 @@
index = ddoc.couchapp && ddoc.couchapp.index;
if (index) {
appPath = ['', name, index[0], appName, index[1]].join('/');
- } else if (ddoc._attachments["index.html"]) {
+ } else if (ddoc._attachments && ddoc._attachments["index.html"]) {
appPath = ['', name, '_design', appName, "index.html"].join('/');
}
if (appPath) options.eachApp(appName, appPath, ddoc);