DevHeads.net

com web/bugs: Remove PEAR errors usage from no-feedback cron job: scripts/cron/no-feedback

Link: <a href="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9909448411387a0446cdbb83adc0015bb6225011" title="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9909448411387a0446cdbb83adc0015bb6225011">http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9909448411387a0446cdbb...</a>

Log:
Remove PEAR errors usage from no-feedback cron job

The error handling has been refactored via
23298a123688443276f60143c1261f85a85873fe.

Changed paths:
M scripts/cron/no-feedback

Diff:
diff --git a/scripts/cron/no-feedback b/scripts/cron/no-feedback
index 91ad4ad..a32b955 100755
--- a/scripts/cron/no-feedback
+++ b/scripts/cron/no-feedback
@@ -23,9 +23,7 @@ if ($dbh)
FROM bugdb
WHERE status = 'Feedback' AND ts2 < DATE_SUB(NOW(), INTERVAL {$after})
")->execute([]);
- if (PEAR::isError($res)) {
- throw new Exception("SQL Error in no-feedback");
- }
+
while ($bug = $res->fetchRow(PDO::FETCH_ASSOC))
{
list($mailto, $mailfrom, $bcc, $params) = get_package_mail($bug['package_name'], false, $bug['bug_type']);