From e4907420e8eb415b77e5ceea35caa133dcb08566 Mon Sep 17 00:00:00 2001 From: Austin Ginder Date: Fri, 6 Sep 2024 21:36:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20PHP=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/local-scripts/ssh.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/local-scripts/ssh.php b/lib/local-scripts/ssh.php index 2c10113..c667b49 100644 --- a/lib/local-scripts/ssh.php +++ b/lib/local-scripts/ssh.php @@ -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; }