Skip to content

Commit c3aa526

Browse files
committed
Fix sql condition
1 parent 35c1f9b commit c3aa526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function soa_update($event_name, $data) {
335335
chgrp($filename, $dns_config['bind_group']);
336336

337337
// Store also in the db for exports.
338-
$app->dbmaster->query("UPDATE `dns_soa` SET `rendered_zone`=?", $rendered_zone);
338+
$app->dbmaster->query("UPDATE `dns_soa` SET `rendered_zone`=? WHERE id=?", $rendered_zone, $zone['id']);
339339

340340
//* Check the zonefile
341341
if(is_file($filename.'.err')) unlink($filename.'.err');

0 commit comments

Comments
 (0)