Fixes insert query on creation if multi source redirects are not used
This commit is contained in:
parent
d44fb91efc
commit
99c6985796
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ if(isset($_POST['savemode'])){
|
|||
|
||||
$values = array();
|
||||
if(count($sources) === 1){
|
||||
$values[] = "('$source', '$destination', NULL)";
|
||||
$additionalSqlValue = defined('DBC_ALIASES_MULTI_SOURCE') ? ", NULL" : "";
|
||||
$values[] = "('$source', '$destination' $additionalSqlValue)";
|
||||
}
|
||||
else{
|
||||
// multi source handling
|
||||
|
|
Loading…
Add table
Reference in a new issue