Skip to content

Commit

Permalink
Merge pull request #21 from amimoto-ami/fix-warning
Browse files Browse the repository at this point in the history
fixed PHP7.2 Warning
  • Loading branch information
wokamoto authored Oct 31, 2018
2 parents 066ffbf + ba533b7 commit 4d80be0
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 213 deletions.
2 changes: 1 addition & 1 deletion includes/caching.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function nonce_life($life)
{
$expires = get_option(NginxChampuru::OPTION_NAME_CACHE_EXPIRES, array($life));
$max =
is_array($expires) && is_array(array_values($expires))
is_array($expires) && !empty($expires) && is_array(array_values($expires))
? max(array_values($expires))
: 0;
if ($max > $life) {
Expand Down
4 changes: 2 additions & 2 deletions nginx-champuru.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Author: Digitalcube
Plugin URI: https://github.com/megumiteam/nginx-cache-controller
Description: Plugin for Nginx Reverse Proxy
Version: 3.3.0
Author URI: http://amimoto-ami.com/
Version: 3.3.1
Author URI: https://amimoto-ami.com/
Domain Path: /languages
Text Domain: nginxchampuru
*/
Expand Down
Loading

0 comments on commit 4d80be0

Please sign in to comment.