Minor addition of return value for delete_message().
This commit is contained in:
parent
7c8fb7125f
commit
3d3b3a96e9
|
@ -3176,7 +3176,7 @@ function delete_message($messageid, $group = null, $overview_dbh = null)
|
||||||
$overview_dbh = overview_db_open($database);
|
$overview_dbh = overview_db_open($database);
|
||||||
if (! $overview_dbh) {
|
if (! $overview_dbh) {
|
||||||
file_put_contents($logfile, "\n" . logging_prefix() . " " . $config_name . " FAILED opening " . $database, FILE_APPEND);
|
file_put_contents($logfile, "\n" . logging_prefix() . " " . $config_name . " FAILED opening " . $database, FILE_APPEND);
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
$close_ovdb = true;
|
$close_ovdb = true;
|
||||||
}
|
}
|
||||||
|
@ -3193,7 +3193,6 @@ function delete_message($messageid, $group = null, $overview_dbh = null)
|
||||||
$statusnotes = null;
|
$statusnotes = null;
|
||||||
while ($row = $overview_query->fetch()) {
|
while ($row = $overview_query->fetch()) {
|
||||||
if (isset($row['number'])) {
|
if (isset($row['number'])) {
|
||||||
// echo "\nFOUND: " . $messageid . " IN: " . $group;
|
|
||||||
file_put_contents($logfile, "\n" . logging_prefix() . " " . $config_name . " DELETING: " . $messageid . " IN: " . $group, FILE_APPEND);
|
file_put_contents($logfile, "\n" . logging_prefix() . " " . $config_name . " DELETING: " . $messageid . " IN: " . $group, FILE_APPEND);
|
||||||
}
|
}
|
||||||
if (is_file($spooldir . '/articles/' . $grouppath . '/' . $row['number'])) {
|
if (is_file($spooldir . '/articles/' . $grouppath . '/' . $row['number'])) {
|
||||||
|
@ -3223,7 +3222,7 @@ function delete_message($messageid, $group = null, $overview_dbh = null)
|
||||||
if ($close_ovdb) {
|
if ($close_ovdb) {
|
||||||
$overview_dbh = null;
|
$overview_dbh = null;
|
||||||
}
|
}
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function returns FALSE if article is OK
|
// This function returns FALSE if article is OK
|
||||||
|
|
Loading…
Reference in New Issue