diff options
author | h6w <tudor@tudorholton.com> | 2020-07-02 08:55:36 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 08:55:36 +1000 |
commit | 1430c530886d2e14cf3ebc678c6db85bfaae767e (patch) | |
tree | 438dd7120d216113663eb08bf3e530d9043d0a59 | |
parent | 44bfa810b436fd4a86d91df7026c9cac1f7eb630 (diff) | |
parent | 7b4dbf6b189b3210c33cefd3f9ec51d224717e91 (diff) | |
download | phpvirtualbox-1430c530886d2e14cf3ebc678c6db85bfaae767e.zip phpvirtualbox-1430c530886d2e14cf3ebc678c6db85bfaae767e.tar.gz phpvirtualbox-1430c530886d2e14cf3ebc678c6db85bfaae767e.tar.bz2 |
Merge pull request #241 from stianvis/fix_dvd_add_iss234
Fix adding new CD/DVD drive to machine
-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)) |