Skip to content

Commit

Permalink
Merge pull request #148 from stklcode/master
Browse files Browse the repository at this point in the history
Minor correction for compatibility with PHP 5.2
  • Loading branch information
bueltge authored Dec 4, 2017
2 parents 469cb7b + 045c10b commit 510a510
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 510a510

Please sign in to comment.