Bug 184309: Adds an optional disabled state to quips, which allows quips to be moderated if the admin so chooses.

Patch by Tobias Burnus <burnus@gmx.de>
r=joel, a=justdave


git-svn-id: svn://10.0.0.236/trunk@136358 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%syndicomm.com
2003-01-15 06:48:17 +00:00
parent 43ad36f698
commit c5685a7947
5 changed files with 115 additions and 35 deletions

View File

@@ -191,7 +191,7 @@ sub GetQuip {
my $quip;
SendSQL("SELECT quip FROM quips ORDER BY RAND() LIMIT 1");
SendSQL("SELECT quip FROM quips WHERE approved = 1 ORDER BY RAND() LIMIT 1");
if (MoreSQLData()) {
($quip) = FetchSQLData();