From b324631392935524cc9133833e49d390e3631e6c Mon Sep 17 00:00:00 2001 From: Peter Molnar Date: Sun, 31 Mar 2013 22:22:02 +0100 Subject: [PATCH] fix array indexes --- wp-ffpc-acache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-ffpc-acache.php b/wp-ffpc-acache.php index d5c0165..17cd914 100644 --- a/wp-ffpc-acache.php +++ b/wp-ffpc-acache.php @@ -78,10 +78,10 @@ if ( $wp_ffpc_backend->status() === false ) return false; /* try to get data & meta keys for current page */ -$wp_ffpc_keys = array ( $wp_ffpc_config['prefix_meta'], $wp_ffpc_config['prefix_data'] ); +$wp_ffpc_keys = array ( 'meta' => $wp_ffpc_config['prefix_meta'], 'data' => $wp_ffpc_config['prefix_data'] ); $wp_ffpc_values = array(); -foreach ( $wp_ffpc_keys as $key ) { +foreach ( $wp_ffpc_keys as $internal => $key ) { $value = $wp_ffpc_backend->get ( $wp_ffpc_backend->key ( $key ) ); if ( ! $value ) { @@ -91,7 +91,7 @@ foreach ( $wp_ffpc_keys as $key ) { } else { /* store results */ - $wp_ffpc_values[ $key ] = $value; + $wp_ffpc_values[ $internal ] = $value; } }