[WWW] r403 - trunk/phplib

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[WWW] r403 - trunk/phplib fltk-dev Aug 16, 2005 top right image
 
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 ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.