fix to login

This commit is contained in:
Rushabh Mehta
2013-03-19 14:35:20 +05:30
parent fd18fc7986
commit 1755b36ba3
2 changed files with 19 additions and 26 deletions

View File

@@ -37,7 +37,7 @@ erpnext.send_message = function(opts) {
$(document).ready(function() {
// update login
var full_name = getCookie("full_name");
if(full_name.substr(0,1)=='"') {
if(full_name && full_name.substr(0,1)=='"') {
full_name = full_name.substr(1, full_name.length-2);
}
if(full_name) {