Commit 67acac3
Added check if return value is an array (hestiacp#1494)
* Added check if return value is an array
foreach ($dns_cluster as $key => $value) {
$v_dns_cluster = 'yes';
}
Returned NULL when cluster is disabled causing error in error log
2020/12/22 21:48:25 [error] 29766#0: *63 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/hestia/web/edit/server/index.php on line 113" while reading response header from upstream, client: xx.xx.xx.xx, server: _, request: "POST /edit/server/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/hestia-php.sock:", host: "dev.eris.nu:8083", referrer: "https://dev.text.xx:8083/edit/server/"
* Add spaces
Co-authored-by: Raphael Schneeberger <rs@scit.ch>1 parent c837a6d commit 67acac3
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments