Skip to content

Commit

Permalink
Minor correction for compatibility with PHP 5.2
Browse files Browse the repository at this point in the history
Passing method call to empty() is not available in PHP prior to 5.5, so add temporary local variable to restore compatibility.
  • Loading branch information
stklcode committed Dec 4, 2017
1 parent 469cb7b commit 045c10b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/cachify_hdd.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ final class Cachify_HDD {
* @return boolean true/false TRUE when installed
*/
public static function is_available() {
return ! empty( get_option( 'permalink_structure' ) );
$option = get_option( 'permalink_structure' );
return ! empty( $option );
}

/**
Expand Down

0 comments on commit 045c10b

Please sign in to comment.