projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7c7f2
)
Use the more complete toString() output if available.
author
Jan Schneider
<jan@horde.org>
Mon, 21 Sep 2009 12:43:19 +0000
(14:43 +0200)
committer
Jan Schneider
<jan@horde.org>
Fri, 25 Sep 2009 14:19:29 +0000
(16:19 +0200)
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
d272a20
..
3bd559d
100644
(file)
--- a/
framework/Core/lib/Horde.php
+++ b/
framework/Core/lib/Horde.php
@@
-108,9
+108,12
@@
class Horde
}
$message .= ': ' . $userinfo;
}
- } elseif (is_object($message) &&
- is_callable(array($message, 'getMessage'))) {
- $message = $message->getMessage();
+ } elseif (is_object($message)) {
+ if (is_callable(array($message, 'toString'))) {
+ $message = $message->toString();
+ } elseif (is_callable(array($message, 'getMessage'))) {
+ $message = $message->getMessage();
+ }
}
$app = isset($GLOBALS['registry'])