fix npe w/ prev commit

This commit is contained in:
Don Mitchell
2013-02-13 11:22:35 -05:00
parent 4e3e2ec707
commit f7e635a7cd

View File

@@ -78,7 +78,7 @@
function(json) {
if(json.success) {
var next = /next=([^&]*)/g.exec(decodeURIComponent(window.location.search));
if (next.length > 1) {
if (next && next.length > 1) {
location.href = next[1];
}
else location.href = "${reverse('homepage')}";