summaryrefslogtreecommitdiffstats
path: root/endpoints/lib
diff options
context:
space:
mode:
authorIan Moore <imoore76@yahoo.com>2016-01-08 13:10:56 -0500
committerIan Moore <imoore76@yahoo.com>2016-01-08 13:10:56 -0500
commite5394ddab08b57e2d0b550a831f2ec7b82e86568 (patch)
tree16789a171282daa19569ad92898d7eb056bd2731 /endpoints/lib
parentfc220fd7ca316a3256e00be193e7bafbe3e44744 (diff)
downloadphpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.zip
phpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.tar.gz
phpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.tar.bz2
PHP7 support
Diffstat (limited to 'endpoints/lib')
-rw-r--r--endpoints/lib/auth/Builtin.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/endpoints/lib/auth/Builtin.php b/endpoints/lib/auth/Builtin.php
index 30e5a82..fea93ab 100644
--- a/endpoints/lib/auth/Builtin.php
+++ b/endpoints/lib/auth/Builtin.php
@@ -167,7 +167,8 @@ class phpvbAuthBuiltin implements phpvbAuth {
global $_SESSION;
// Must be an admin
- if(!$_SESSION['admin']) break;
+ if(!$_SESSION['admin'])
+ return;
// Use main / auth server
$vbox = new vboxconnector(true);
@@ -175,7 +176,7 @@ class phpvbAuthBuiltin implements phpvbAuth {
// See if it exists
if(!$skipExistCheck && $vbox->vbox->getExtraData('phpvb/users/'.$vboxRequest['u'].'/pass'))
- break;
+ return;
if($vboxRequest['p'])
$vbox->vbox->setExtraData('phpvb/users/'.$vboxRequest['u'].'/pass', hash('sha512', $vboxRequest['p']));