Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
Fix undefined index minify (#554)
Browse files Browse the repository at this point in the history
* fix for PHP Notice:  Undefined index: minify in CacheFlush_Locally.php on line 84

* Update readme
  • Loading branch information
nigrosimone authored Jan 18, 2018
1 parent 42566e2 commit 313db33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CacheFlush_Locally.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function minifycache_flush( $extras = array() ) {
}

function minifycache_flush_all( $extras = array() ) {
if ( $extras['minify'] == 'purge_map' )
if ( isset( $extras['minify'] ) && $extras['minify'] == 'purge_map' )
delete_option( 'w3tc_minify' );

$this->minifycache_flush( $extras );
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Since the last [official release](https://wordpress.org/plugins/w3-total-cache/)

Type | More Information |
:--- | --- |
:beetle: Bug Fix | [Fix for "Fatal error: Uncaught exception 'Exception' with message 'unknown engine'"](https://github.com/szepeviktor/w3-total-cache-fixed/pull/553) |
:beetle: Bug Fix | [Fix for "Fatal error: Uncaught exception 'Exception' with message 'unknown engine'"](https://github.com/szepeviktor/w3-total-cache-fixed/pull/553) |
:beetle: Bug Fix | [PHP Notice: Undefined index: minify in CacheFlush_Locally.php](https://github.com/szepeviktor/w3-total-cache-fixed/pull/554) |

0 comments on commit 313db33

Please sign in to comment.