From ef02ec4c8937a755a511fbeb75e3f02b21aa9338 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sun, 22 Feb 2009 18:44:26 +0000 Subject: 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 --- share/www/script/jquery.couch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/www') 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); -- cgit v1.2.3