|
|
Author: mike
Date: 2005-08-17 00:59:48 -0400 (Wed, 17 Aug 2005)
New Revision: 403
Modified:
trunk/phplib/base-str.php
Log:
Don't show hidden text.
Modified: trunk/phplib/base-str.php
===================================================================
--- trunk/phplib/base-str.php 2005-08-17 04:55:11 UTC (rev 402)
+++ trunk/phplib/base-str.php 2005-08-17 04:59:48 UTC (rev 403)
@@ -888,7 +888,8 @@
if ($str->status >= STR_STATUS_PENDING)
{
$textresult = db_query("SELECT * FROM strtext "
- ."WHERE str_id = $str->id "
+ ."WHERE str_id = $str->id AND "
+ ."is_published = 1 "
."ORDER BY id DESC LIMIT 1");
if ($textresult && db_count($textresult) > 0)
{
[ Direct Link to Message ] | |
|
| |