From 312f32f50561a7d22b8491f5d5a1798cf04d0879 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 27 Jun 2006 22:55:43 +0000 Subject: [PATCH] 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 --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index b1f755621d..77a7c3260b 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -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 : ''; }