cvs: pearweb /include pear-format-html.php

From: Date: Wed, 08 Apr 2009 07:27:35 +0000
Subject: cvs: pearweb /include pear-format-html.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8302@lists.php.net to get a copy of this message
cweiske Wed Apr 8 07:27:35 2009 UTC Modified files: /pearweb/include pear-format-html.php Log: Fix error on pearweb http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.279&r2=1.280&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.279 pearweb/include/pear-format-html.php:1.280 --- pearweb/include/pear-format-html.php:1.279 Thu Apr 2 20:23:44 2009 +++ pearweb/include/pear-format-html.php Wed Apr 8 07:27:35 2009 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.279 2009/04/02 20:23:44 cweiske Exp $ + $Id: pear-format-html.php,v 1.280 2009/04/08 07:27:35 cweiske Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -478,8 +478,10 @@ { if ($error instanceof Exception) { $msg = $error->__toString(); - } else { + } else if ($error instanceof PEAR_Error) { $msg = $error->getMessage() . '... ' . $error->getUserInfo(); + } else { + $msg = (string)$error; } return $msg; }

« previous php.pear.core (#8302) next »