@ -35,7 +35,7 @@ class AdminpasswordHandler extends PFAHandler {
);
}
public function init($id) :bool {
public function init(string $id) :bool {
# hardcode to logged in admin
if ($this->admin_username == '') {
die("No admin logged in");
@ -51,7 +51,7 @@ class AliasdomainHandler extends PFAHandler {
public function init($id) : bool {
public function init(string $id) : bool {
$success = parent::init($id);
if ($success) {
if (count($this->struct['alias_domain']['options']) == 0 && $this->new) {
@ -60,7 +60,7 @@ class MailboxHandler extends PFAHandler {
if (!parent::init($id)) {
return false;
@ -18,7 +18,7 @@ class VacationHandler extends PFAHandler {
*/
protected $domain_field = 'domain';
throw new \Exception('VacationHandler is not yet ready to be used with *Handler methods');