Skip to content

Commit e3cf414

Browse files
committed
Update returning status
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 37dd137 commit e3cf414

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php/EE/Runner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public function check_requirements( $show_error = true ) {
101101
$error = 'EasyEngine requires minimum PHP 7.2.0 to run.';
102102
}
103103

104-
if ( ! $show_error ) {
105-
return $status;
106-
} elseif ( ! $status ) {
104+
if ( $show_error && ! $status ) {
107105
EE::error( $error );
108106
}
107+
108+
return $status;
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)