Преглед изворни кода

Resolve php errors caused by php8.2 (#3209)

Jaap Marcus пре 3 година
родитељ
комит
27c98b63ca
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 2
      web/src/app/System/HestiaApp.php
  2. 1 0
      web/src/app/WebApp/Installers/BaseSetup.php

+ 2 - 2
web/src/app/System/HestiaApp.php

@@ -225,11 +225,11 @@ class HestiaApp {
 				return $match[1] . "." . $match[2];
 				return $match[1] . "." . $match[2];
 			} else {
 			} else {
 				$supported = $this->run("v-list-sys-php", "json", $result);
 				$supported = $this->run("v-list-sys-php", "json", $result);
-				return $this->$supported->json[0];
+				return $result->json[0];
 			}
 			}
 		} else {
 		} else {
 			$supported = $this->run("v-list-sys-php", "json", $result);
 			$supported = $this->run("v-list-sys-php", "json", $result);
-			return $this->$supported->json[0];
+			return $this->$result->json[0];
 		}
 		}
 	}
 	}
 
 

+ 1 - 0
web/src/app/WebApp/Installers/BaseSetup.php

@@ -14,6 +14,7 @@ abstract class BaseSetup implements InstallerInterface {
 	protected $domain;
 	protected $domain;
 	protected $extractsubdir;
 	protected $extractsubdir;
 	protected $AppDirInstall;
 	protected $AppDirInstall;
+	protected $appcontext;
 
 
 	public function setAppDirInstall(string $appDir) {
 	public function setAppDirInstall(string $appDir) {
 		if (!empty($appDir)) {
 		if (!empty($appDir)) {