SF.net SVN: postfixadmin:[489] trunk/setup.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-11-25 09:51:53
|
Revision: 489
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=489&view=rev
Author: GingerDog
Date: 2008-11-25 09:51:51 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
setup.php: fix table_by_key issue for domain table
Modified Paths:
--------------
trunk/setup.php
Modified: trunk/setup.php
===================================================================
--- trunk/setup.php 2008-11-24 21:01:27 UTC (rev 488)
+++ trunk/setup.php 2008-11-25 09:51:51 UTC (rev 489)
@@ -309,9 +309,10 @@
if (isset ($_POST['fPassword2'])) $fPassword2 = escape_string ($_POST['fPassword2']);
// XXX need to ensure domains table includes an 'ALL' entry.
- $r = db_query("SELECT * FROM domain WHERE domain = 'ALL'");
+ $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($table_domain, array('domain' => 'ALL')); // 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|