You could just protect it with a if (!data) return FALSE; If I had CVS access at work (stupid corporate politics) I'd submit it myself, not a hard fix.... -- Mike Hearn <m.hearn at signal.qinetiq.com> QinetiQ - Malvern Technology Center