From ade5fd0c2419213a91aa473c6d85af6257908032 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 7 Oct 2013 20:01:52 +0000 Subject: [PATCH] AliasHandler: - initStruct(): set default for 'goto' to empty array() This fixes a problem with the cli when --goto was not specified git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1530 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/AliasHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/AliasHandler.php b/model/AliasHandler.php index f6a0660b..73cc2944 100644 --- a/model/AliasHandler.php +++ b/model/AliasHandler.php @@ -32,7 +32,7 @@ class AliasHandler extends PFAHandler { /*not_in_db*/ 1 ), 'domain' => pacol( $this->new, 0, 0, 'enum', '' , '' , '', /*options*/ $this->allowed_domains ), - 'goto' => pacol( 1, 1, 1, 'txtl', 'to' , 'pEdit_alias_help' ), + 'goto' => pacol( 1, 1, 1, 'txtl', 'to' , 'pEdit_alias_help' , array() ), 'is_mailbox' => pacol( 0, 0, 1, 'int', '' , '' , 0 , # technically 'is_mailbox' is bool, but the automatic bool conversion breaks the query. Flagging it as int avoids this problem. # Maybe having a vbool type (without the automatic conversion) would be cleaner - we'll see if we need it.