Skip to content

Commit 7e92739

Browse files
author
Jacob Middag
committed
Fix compability for PHP < 5.5 and do not use packages that require 5.4
1 parent 0604a5c commit 7e92739

3 files changed

Lines changed: 25 additions & 27 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"require-dev": {
66
"phpunit/phpunit": "~4.6",
77
"mikey179/vfsStream": "~1.5",
8-
"mockery/mockery": "dev-master"
8+
"mockery/mockery": "~0.9"
99
}
1010
}

composer.lock

Lines changed: 23 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/class-tiny-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct() {
3232
}
3333

3434
public function admin_init() {
35-
if (current_user_can('manage_options') && empty($this->get_api_key())) {
35+
if (current_user_can('manage_options') && !$this->get_api_key()) {
3636
$link = sprintf('<a href="options-media.php#%s">%s</a>', self::NAME,
3737
self::translate_escape('Please fill in an API key to start compressing images'));
3838
$this->notices->show('setting', $link, 'error', false);

0 commit comments

Comments
 (0)