diff options
author | Stian Viskjer <stian@viskjer.net> | 2020-07-01 00:12:11 +0200 |
---|---|---|
committer | Stian Viskjer <stian@viskjer.net> | 2020-07-01 00:12:11 +0200 |
commit | 7b4dbf6b189b3210c33cefd3f9ec51d224717e91 (patch) | |
tree | 438dd7120d216113663eb08bf3e530d9043d0a59 /endpoints/lib | |
parent | 44bfa810b436fd4a86d91df7026c9cac1f7eb630 (diff) | |
download | phpvirtualbox-7b4dbf6b189b3210c33cefd3f9ec51d224717e91.zip phpvirtualbox-7b4dbf6b189b3210c33cefd3f9ec51d224717e91.tar.gz phpvirtualbox-7b4dbf6b189b3210c33cefd3f9ec51d224717e91.tar.bz2 |
Fix adding new CD/DVD drive to machine
Diffstat (limited to 'endpoints/lib')
-rw-r--r-- | endpoints/lib/vboxconnector.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 93d0232..cfa6cc5 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -2047,7 +2047,7 @@ class vboxconnector { if($ma['medium']['hostDrive']) $m->passthroughDevice($name, $ma['port'], $ma['device'], $ma['passthrough']); else - $m->temporaryEjectDevice($name, $ma['port'], $ma['device'], $ma['temporaryEject']); + $m->temporaryEjectDevice($name, $ma['port'], $ma['device'], ($ma['temporaryEject'] ? true : false)); // HardDisk medium attachment type } else if($ma['type'] == 'HardDisk') { @@ -2080,7 +2080,7 @@ class vboxconnector { } if($sc['bus'] == 'SATA' || $sc['bus'] == 'USB') { - $m->setHotPluggableForDevice($name, $ma['port'], $ma['device'], $ma['hotPluggable']); + $m->setHotPluggableForDevice($name, $ma['port'], $ma['device'], ($ma['hotPluggable'] ? true : false)); } if(is_object($med)) |