all repos — wp-ffpc @ c3329aa4d1e94aa4b8df5b329488d29d8024524d

fixed undefined index notices
Harold Kyle harold@boxcarpress.com
Tue, 09 Apr 2013 00:32:07 -0400
commit

c3329aa4d1e94aa4b8df5b329488d29d8024524d

parent

156611cb47c5d2d0376700f08d2360521920618c

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M wp-ffpc-acache.phpwp-ffpc-acache.php

@@ -96,14 +96,14 @@ }

} /* serve cache 404 status */ -if ( $wp_ffpc_values['meta']['status'] == 404 ) { +if ( isset( $wp_ffpc_values['meta']['status'] ) && $wp_ffpc_values['meta']['status'] == 404 ) { header("HTTP/1.1 404 Not Found"); flush(); die(); } /* server redirect cache */ -if ( $wp_ffpc_values['meta']['redirect'] ) { +if ( isset( $wp_ffpc_values['meta']['redirect'] ) && $wp_ffpc_values['meta']['redirect'] ) { header('Location: ' . $wp_ffpc_values['meta']['redirect'] ); flush(); die();
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -582,7 +582,7 @@ <fieldset id="<?php echo $this->plugin_constant ?>-precache">

<legend><?php _e( 'Precache', $this->plugin_constant ); ?></legend> <dl> <dt> - <?php if ( $_GET[ self::key_precache_disabled ]=='true' || $this->status == 5 || $this->shell_function == false ) : ?> + <?php if ( isset( $_GET[ self::key_precache_disabled ] ) && $_GET[ self::key_precache_disabled ] =='true' || $this->status == 5 || $this->shell_function == false ) : ?> <strong><?php _e( "Precache functionality is disabled due to unavailable system call function. <br />Since precaching may take a very long time, it's done through a background CLI process in order not to run out of max execution time of PHP. Please enable one of the following functions if you whish to use precaching: " , $this->plugin_constant ) ?><?php echo join( ',' , $this->shell_possibilities ); ?></strong> <?php else: ?> <input class="button-secondary" type="submit" name="<?php echo $this->button_precache ?>" id="<?php echo $this->button_precache ?>" value="<?php _e('Pre-cache', $this->plugin_constant ) ?>" />