summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
Diffstat (limited to 'share/www')
-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);