Fixes #96, When notify() is called for a new note, getNote() on the item returns false

getNote() now returns an empty string rather than false on a new item

David, I assume this is what you meant--if not, reopen
This commit is contained in:
Dan Stillman 2006-06-27 22:55:43 +00:00
parent 0991ae230e
commit 312f32f505

View file

@ -892,7 +892,8 @@ Scholar.Item.prototype.getNote = function(){
}
var sql = "SELECT note FROM itemNotes WHERE itemID=" + this.getID();
return Scholar.DB.valueQuery(sql);
var note = Scholar.DB.valueQuery(sql);
return note ? note : '';
}