mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
- explicitely specify (empty) values for description and transport when
creating the "ALL" domain to fix problems with strict SQL mode in MariaDB https://sourceforge.net/p/postfixadmin/bugs/288/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@1498 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
a264e34d15
commit
d08d29caff
@ -335,7 +335,7 @@ else
|
||||
$table_domain = table_by_key('domain');
|
||||
$r = db_query("SELECT * FROM $table_domain WHERE domain = 'ALL'");
|
||||
if($r['rows'] == 0) {
|
||||
db_insert('domain', array('domain' => 'ALL')); // all other fields should default through the schema.
|
||||
db_insert('domain', array('domain' => 'ALL', 'description' => '', 'transport' => '') ); // all other fields should default through the schema.
|
||||
}
|
||||
|
||||
list ($error, $tMessage, $pAdminCreate_admin_username_text, $pAdminCreate_admin_password_text) = create_admin($fUsername, $fPassword, $fPassword2, array('ALL'), TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user