DevHeads.net

com web/bugs: Do not use suspended status when requesting a random ticked: src/Repository/BugRepository.php

Link: <a href="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=3c825bc8531f1896d823c77eba97b2b709338427" title="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=3c825bc8531f1896d823c77eba97b2b709338427">http://git.php.net/?p=web/bugs.git;a=commitdiff;h=3c825bc8531f1896d823c7...</a>

Log:
Do not use suspended status when requesting a random ticked

Changed paths:
M src/Repository/BugRepository.php

Diff:
diff --git a/src/Repository/BugRepository.php b/src/Repository/BugRepository.php
index d47f0c3..8bb871f 100644
--- a/src/Repository/BugRepository.php
+++ b/src/Repository/BugRepository.php
@@ -63,7 +63,7 @@ class BugRepository
{
$sql = "SELECT id
FROM bugdb
- WHERE status NOT IN('Closed', 'Not a bug', 'Duplicate', 'Spam', 'Wont fix', 'No Feedback')
+ WHERE status NOT IN('Closed', 'Not a bug', 'Duplicate', 'Spam', 'Wont fix', 'No Feedback', 'Suspended')
AND private = 'N'
ORDER BY RAND() LIMIT 1
";