projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-14356 - CRM_Core_Session - Guard against unset value
[civicrm-core.git]
/
CRM
/
Core
/
Error.php
diff --git
a/CRM/Core/Error.php
b/CRM/Core/Error.php
index ed6be358d103ec9d4dd5ef672e700a73d6bf99bc..251633afd02e6a81897ec0f5865014a72efb8c1b 100644
(file)
--- a/
CRM/Core/Error.php
+++ b/
CRM/Core/Error.php
@@
-106,7
+106,7
@@
class CRM_Core_Error extends PEAR_ErrorStack {
$this->setDefaultCallback(array($this, 'handlePES'));
}
$this->setDefaultCallback(array($this, 'handlePES'));
}
- function getMessages(&$error, $separator = '<br />') {
+
static public
function getMessages(&$error, $separator = '<br />') {
if (is_a($error, 'CRM_Core_Error')) {
$errors = $error->getErrors();
$message = array();
if (is_a($error, 'CRM_Core_Error')) {
$errors = $error->getErrors();
$message = array();