Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
dovy committed Sep 9, 2020
1 parent 338f29d commit bfe23a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redux-templates/classes/class-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,10 @@ public function check_template_response( $parameters ) {
$count = ReduxTemplates\Init::left( $parameters['uid'] );

$count = intval( $count ) - 1;
if ( $count === 0 ) {
if ( 0 === $count ) {
$response['left'] = $count;
update_user_meta( $parameters['uid'], '_redux_templates_counts', -1 );
} else if ( $count < 0 ) {
} elseif ( $count < 0 ) {
wp_send_json_error(
array(
'message' => 'Please activate Redux',
Expand Down

0 comments on commit bfe23a0

Please sign in to comment.