[pLog-svn] r3002 - plog/trunk/class/view

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Mar 2 03:04:51 GMT 2006


Author: mark
Date: 2006-03-02 03:04:50 +0000 (Thu, 02 Mar 2006)
New Revision: 3002

Modified:
   plog/trunk/class/view/view.class.php
Log:
Change =="" to empty() to avoid PHP 5 notice.

Modified: plog/trunk/class/view/view.class.php
===================================================================
--- plog/trunk/class/view/view.class.php	2006-03-02 03:01:46 UTC (rev 3001)
+++ plog/trunk/class/view/view.class.php	2006-03-02 03:04:50 UTC (rev 3002)
@@ -283,7 +283,7 @@
             {
                 $value = $session["$keyName"];
             }
-            if( $value == "" && $defaultValue != "" )
+            if( empty( $value ) && !empty( $defaultValue ) )
                 $value = $defaultValue;
                 
             return $value;



More information about the pLog-svn mailing list