Error checking

This commit is contained in:
Squidly271
2020-09-26 14:46:35 -04:00
parent 5b5d666c61
commit 680a2cee2b
2 changed files with 3 additions and 3 deletions

View File

@@ -749,9 +749,9 @@ class DockerClient {
public function stopContainer($id, $t=false) {
global $dockercfg;
if ( ! $t )
$t = $dockercfg['DOCKER_TIMEOUT'] ?: 10;
$t = intval($dockercfg['DOCKER_TIMEOUT']) ?: 10;
$this->getDockerJSON("/containers/$id/stop?t=$t", 'POST', $code);
$this->flushCache($this::$containersCache);
return $code;