projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f18377
)
CRM-15901: Turn off PHP errors display for all ajax calls
author
Nicolas Ganivet
<nicolas@cividesk.com>
Sun, 1 Feb 2015 18:24:17 +0000
(11:24 -0700)
committer
Nicolas Ganivet
<nicolas@cividesk.com>
Mon, 2 Feb 2015 04:13:19 +0000
(21:13 -0700)
CRM/Core/Invoke.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Invoke.php
b/CRM/Core/Invoke.php
index a1e5f726f99271cbc1c067f70b9cc6632e8c36a6..59777444d5b9c9ac30b7143b6730204c83dba93c 100644
(file)
--- a/
CRM/Core/Invoke.php
+++ b/
CRM/Core/Invoke.php
@@
-64,6
+64,10
@@
class CRM_Core_Invoke {
if ($args[0] !== 'civicrm') {
return;
}
+ // CRM-15901: Turn off PHP errors display for all ajax calls
+ if (CRM_Utils_Array::value(1, $args) == 'ajax' || CRM_Utils_Array::value('snippet', $_REQUEST)) {
+ ini_set('display_errors', 0);
+ }
if (!defined('CIVICRM_SYMFONY_PATH')) {
try {