Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malle-pietje committed Oct 4, 2016
1 parent d5c9fbd commit 256ff1d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,19 @@
if (isset($_SESSION['controller']) && isset($controllers)) {
$controller = $_SESSION['controller'];
} else {
/**
* if the user has configured a single controller, we push it's details
* to the $_SESSION and $controller arrays
*/
$_SESSION['controller'] = array('user' => $controlleruser,
'password' => $controllerpassword,
'url' => $controllerurl,
'name' => 'Default Controller',
'version' => $controllerversion
);
$controller = $_SESSION['controller'];
if (!isset($controllers)) {
/**
* if the user has configured a single controller, we push it's details
* to the $_SESSION and $controller arrays
*/
$_SESSION['controller'] = array('user' => $controlleruser,
'password' => $controllerpassword,
'url' => $controllerurl,
'name' => 'Controller',
'version' => $controllerversion
);
$controller = $_SESSION['controller'];
}
}

if (isset($_GET['site_id'])) {
Expand Down

0 comments on commit 256ff1d

Please sign in to comment.