Skip to content

Commit c7654c4

Browse files
author
Marius Burkard
committed
Fixes #3396
1 parent b31c149 commit c7654c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/database_user_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function onBeforeDelete() {
5555
$old_record = $app->tform->getDataRecord($this->id);
5656

5757
/* we cannot use datalogDelete here, as we need to set server_id to 0 */
58-
$app->db->query("DELETE FROM `web_database_user` WHERE ?? = ?", $index_field, $index_value);
58+
$app->db->query("DELETE FROM `web_database_user` WHERE `database_user_id` = ?", $this->id);
5959
$new_rec = array();
6060
$old_record['server_id'] = 0;
6161
$app->db->datalogSave('web_database_user', 'DELETE', 'database_user_id', $this->id, $old_record, $new_rec);

0 commit comments

Comments
 (0)