mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-06 22:32:22 +03:00
Fix typo
This commit is contained in:
parent
93818f40e9
commit
6f9f7b3982
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ function add_db_zone($zone, $owner) {
|
|||
jtable_respond(null, 'error', "$zone is not a valid zonename");
|
||||
}
|
||||
$db = get_db();
|
||||
$q = $db->prepare("INSERT OR REPLACE INTO zones (zone, owner) VALUES (? (SELECT id FROM users WHERE emailaddress = ?))");
|
||||
$q = $db->prepare("INSERT OR REPLACE INTO zones (zone, owner) VALUES (?, (SELECT id FROM users WHERE emailaddress = ?))");
|
||||
$q->bindValue(1, $zone, SQLITE3_TEXT);
|
||||
$q->bindValue(2, $owner, SQLITE3_TEXT);
|
||||
$q->execute();
|
||||
|
|
Loading…
Add table
Reference in a new issue