Skip to content

Commit

Permalink
Update class-wp-redis-cli-commands.php
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Dec 11, 2018
1 parent 6bf7048 commit b4e5eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/class-wp-redis-cli-commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public function status()
return;
}

if (! ) {
if (! $plugin->redis_status()) {
WP_CLI::line('Status: ' . WP_CLI::colorize('%rNot Connected%n'));
return;
}

WP_CLI::line('Status: ' . WP_CLI::colorize('%gConnected%n'));
if (! is_null($client)) {
if (! is_null($client = $plugin->redis_instance())) {
WP_CLI::line("Client: $client");
}
}
Expand Down

0 comments on commit b4e5eff

Please sign in to comment.