Index: html.php
===================================================================
RCS file: /repository/imp/lib/MIME/Viewer/html.php,v
retrieving revision 1.66
diff -u -r1.66 html.php
--- html.php 20 May 2004 15:45:33 -0000 1.66
+++ html.php 12 Jun 2004 13:23:15 -0000
@@ -137,6 +137,10 @@
/* Get the lists of available address books. */
$sources = $registry->call('contacts/sources');
+ if (is_a($sources, 'PEAR_Error')) {
+ return false;
+ }
+
/* Try to get back a result from the search. */
$result = $registry->call('contacts/getField', array($base_ob->getFromAddress(), '__key', array_keys($sources)));