]> git.mxchange.org Git - mailer.git/commitdiff
Now the isset() command is looking for direct match in 'cache' array
authorRoland Häder <roland@mxchange.org>
Tue, 9 Oct 2012 19:46:32 +0000 (19:46 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 9 Oct 2012 19:46:32 +0000 (19:46 +0000)
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];