commit | ab573ce0c759f15d8bed2ad7bf48a2abe071e80d | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Fri Dec 21 11:01:31 2012 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri Dec 21 11:01:31 2012 +0530 |
tree | ab29803dd81bc041fde31c124494eb975202353a | |
parent | 0c71218988b82789dfd95f514ff79e6db23375e1 [diff] |
fixes in website
diff --git a/website/utils.py b/website/utils.py index 2954556..079ad21 100644 --- a/website/utils.py +++ b/website/utils.py
@@ -202,7 +202,7 @@ t['child_items'].append(d) break - if top_items and ("products" in [d.url.split(".")[0] for d in top_items]): + if top_items and ("products" in [d.url.split(".")[0] for d in top_items if d.url]): # product categories products = webnotes.conn.sql("""select t1.item_group as label, concat(t2.page_name, ".html") as url,