Always set the description - fixes #24

This commit is contained in:
2025-10-24 11:47:35 +02:00
parent 446c213922
commit fb2e43cfb8
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ function add_onions(&$onions, $db): void
}
}
$time=time();
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged) VALUES (?, ?, ?, ?);');
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged, description) VALUES (?, ?, ?, ?, "");');
$db->beginTransaction();
foreach($onions as $md5=>$addr){
$insert->execute([$addr, $md5, $time, $time]);