Fix bug in nocem that caused section to not be found (so no delete).
This commit is contained in:
parent
11ccd228c6
commit
7622cc4e3c
|
@ -1 +1 @@
|
||||||
0.9.10
|
0.9.11
|
||||||
|
|
|
@ -2746,8 +2746,9 @@ function delete_message($messageid, $group = null, $overview_dbh = null)
|
||||||
/* Find section */
|
/* Find section */
|
||||||
$menulist = file($config_dir . "menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
$menulist = file($config_dir . "menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||||
foreach ($grouplist as $group) {
|
foreach ($grouplist as $group) {
|
||||||
if(!$config_name = get_section_by_group($groupname, true)) {
|
$config_name = get_section_by_group($group, true);
|
||||||
file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Group not found: " . $group, FILE_APPEND);
|
if(!$config_name) {
|
||||||
|
file_put_contents($logfile, "\n" . format_log_date() . " Group not found: " . $group, FILE_APPEND);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($CONFIG['article_database'] == '1') {
|
if ($CONFIG['article_database'] == '1') {
|
||||||
|
|
Loading…
Reference in New Issue