]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Now the isset() command is looking for direct match in 'cache' array
[mailer.git] / inc / mysql-manager.php
index ce649cdd36ef09f474ece96e26443566451dbc95..b4b635d87b4e2f5a60261114679589cdcf80bc96 100644 (file)
@@ -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];