A tweak for bug #7656 to make the export work on PHP 5.3.
A fix for bug #7950.  It now checks to see if entry is an object before it uses it.