mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 14:30:29 -05:00
Docker: suppress PHP warning
This commit is contained in:
@@ -277,7 +277,7 @@ class DockerTemplates {
|
||||
if ($ct['Running']) {
|
||||
$port = &$ct['Ports'][0];
|
||||
$ip = ($ct['NetworkMode']=='host'||$port['NAT'] ? $host : $port['IP']);
|
||||
$tmp['url'] = strpos($tmp['url'],$ip)!==false ? $tmp['url'] : $this->getControlURL($ct, $ip);
|
||||
$tmp['url'] = strpos($tmp['url'] ?: '',$ip)!==false ? $tmp['url'] : $this->getControlURL($ct, $ip);
|
||||
$tmp['shell'] = $tmp['shell'] ?? $this->getTemplateValue($image, 'Shell');
|
||||
}
|
||||
$tmp['registry'] = $tmp['registry'] ?? $this->getTemplateValue($image, 'Registry');
|
||||
|
||||
Reference in New Issue
Block a user