fixed undefined index notices
This commit is contained in:
parent
156611cb47
commit
c3329aa4d1
2 changed files with 3 additions and 3 deletions
|
@ -96,14 +96,14 @@ foreach ( $wp_ffpc_keys as $internal => $key ) {
|
|||
}
|
||||
|
||||
/* 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();
|
||||
|
|
|
@ -582,7 +582,7 @@ if ( ! class_exists( 'WP_FFPC' ) ) {
|
|||
<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 ) ?>" />
|
||||
|
|
Loading…
Reference in a new issue