Fix bug in nocem that caused section to not be found (so no delete).

This commit is contained in:
Retro_Guy 2024-06-01 04:27:51 -07:00
parent 11ccd228c6
commit 7622cc4e3c
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
0.9.10
0.9.11

View File

@ -2746,8 +2746,9 @@ function delete_message($messageid, $group = null, $overview_dbh = null)
/* Find section */
$menulist = file($config_dir . "menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach ($grouplist as $group) {
if(!$config_name = get_section_by_group($groupname, true)) {
file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Group not found: " . $group, FILE_APPEND);
$config_name = get_section_by_group($group, true);
if(!$config_name) {
file_put_contents($logfile, "\n" . format_log_date() . " Group not found: " . $group, FILE_APPEND);
continue;
}
if ($CONFIG['article_database'] == '1') {