[pLog-svn] r681 - plog/trunk/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Wed Jan 5 10:28:08 GMT 2005


Author: ork
Date: 2005-01-05 10:28:07 +0000 (Wed, 05 Jan 2005)
New Revision: 681

Modified:
   plog/trunk/class/dao/article.class.php
Log:
added a trim to hasExtendedText(). The WYSIWYG might add whitespaces to
the extendedText. so you see a more, even though there isn't anything
more. the matching should now work in this cases as well..


Modified: plog/trunk/class/dao/article.class.php
===================================================================
--- plog/trunk/class/dao/article.class.php	2005-01-05 02:14:07 UTC (rev 680)
+++ plog/trunk/class/dao/article.class.php	2005-01-05 10:28:07 UTC (rev 681)
@@ -173,8 +173,9 @@
 		 */
         function hasExtendedText()
         {
-            if($this->getExtendedText() == "<br />" || $this->getExtendedText() == "<br/>" ||
-               $this->getExtendedText() == "<p/>" || $this->getExtendedText() == "<p />")
+            $extendedText = trim($this->getExtendedText());
+            if($extendedText == "<br />" || $extendedText == "<br/>" ||
+               $extendedText == "<p/>" || $extendedText == "<p />")
             	return false;
         	else
             	return( strlen($this->getExtendedText()) > 0 );
@@ -736,4 +737,4 @@
 		}
 
 	}
-?>
\ No newline at end of file
+?>




More information about the pLog-svn mailing list