From: quix0r Date: Tue, 9 Oct 2012 19:46:32 +0000 (+0000) Subject: Now the isset() command is looking for direct match in 'cache' array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4083935d69a783b639804191b3124a3ab2461762;p=mailer.git Now the isset() command is looking for direct match in 'cache' array --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index ce649cdd36..b4b635d87b 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -897,7 +897,7 @@ function getPaymentData ($paymentsId, $lookFor = 'price') { $data[$lookFor] = NULL; // Is there cache? - if (isset($GLOBALS['cache_array']['payments'][$paymentsId]['id'])) { + if (isset($GLOBALS['cache_array']['payments'][$lookFor][$paymentsId])) { // Use it if found to save SQL queries $data[$lookFor] = $GLOBALS['cache_array']['payments'][$lookFor][$paymentsId];