From ddefd1d6330e4186f78580ea4aad084d6e0842ba Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Mon, 1 Jun 2015 13:44:24 -0500 Subject: [PATCH] Fixing Logging Manager to skip if mode not set --- lib/PayPal/Core/PayPalLoggingManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Core/PayPalLoggingManager.php b/lib/PayPal/Core/PayPalLoggingManager.php index 0d430ac..5d2ae0f 100644 --- a/lib/PayPal/Core/PayPalLoggingManager.php +++ b/lib/PayPal/Core/PayPalLoggingManager.php @@ -100,7 +100,7 @@ class PayPalLoggingManager if ($this->isLoggingEnabled) { $config = PayPalConfigManager::getInstance()->getConfigHashmap(); // Check if logging in live - if ($config['mode'] == 'live') { + if (array_key_exists('mode', $config) && $config['mode'] == 'live') { // Live should not have logging level above INFO. if ($this->loggingLevel >= PayPalLoggingLevel::INFO) { // If it is at Debug Level, throw an warning in the log.