Fix creation since validation added in commit
v3.6-0-gd1fc7642f0
(2018-08-11) [login/emulate: request page as different user].
class User
{
- function __construct($dir)
+ function __construct($dir, $existing = TRUE)
{
- if (!file_exists($dir)) {
+ if (!file_exists($dir) and $existing) {
throw new Exception("Gebruiker niet gevonden in $dir");
}
$this->dir = $dir;
and !empty($Place['user']) and $Place['user'] !== $User->login) {
$username = strtolower($Place['user']);
unset($user);
- $user = new User("profile/$username");
+ $user = new User("profile/$username", FALSE);
}
require_once('edit.inc.php');