Просмотр исходного кода

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

Jaap Marcus 3 лет назад
Родитель
Сommit
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];
 			} else {
 				$supported = $this->run("v-list-sys-php", "json", $result);
-				return $this->$supported->json[0];
+				return $result->json[0];
 			}
 		} else {
 			$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 $extractsubdir;
 	protected $AppDirInstall;
+	protected $appcontext;
 
 	public function setAppDirInstall(string $appDir) {
 		if (!empty($appDir)) {