Skip to content

Commit

Permalink
πŸ› FIX: PHP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
austinginder committed Sep 7, 2024
1 parent 4dddffc commit e490742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/local-scripts/ssh.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@
return;
}

if ( $environment->provider != "kinsta" && $environment->address == "" ) {
if ( $site->provider != "kinsta" && $environment->address == "" ) {
echo "${COLOR_RED}Error:${COLOR_NORMAL} Missing Kinsta site.";
return;
}

if ( $environment->provider == "wpengine" && $environment == "staging" ) {
if ( $site->provider == "wpengine" && $environment == "staging" ) {
echo "${COLOR_RED}Error:${COLOR_NORMAL} Missing WP Engine site.";
return;
}

if ( $environment->provider == "wpengine" && $environment == "staging" ) {
if ( $site->provider == "wpengine" && $environment == "staging" ) {
echo "${COLOR_RED}Error:${COLOR_NORMAL} Missing WP Engine site.";
return;
}
Expand Down

0 comments on commit e490742

Please sign in to comment.