Fix bad SQL query in AMS
This commit is contained in:
parent
cf9ee9113d
commit
41455d6d98
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ function domain_management_hook_return_global()
|
|||
function domain_management_hook_activate()
|
||||
{
|
||||
$dbl = new DBLayer( "lib" );
|
||||
$sql = "INSERT INTO `settings` (Setting)
|
||||
SELECT 'Domain_Auto_Add' FROM DUAL
|
||||
$sql = "INSERT INTO `settings` (Setting, Value)
|
||||
SELECT 'Domain_Auto_Add', 0 FROM DUAL
|
||||
WHERE NOT EXISTS
|
||||
(SELECT Setting FROM settings WHERE Setting='Domain_Auto_Add');";
|
||||
|
||||
|
|
Loading…
Reference in a new issue