[pLog-svn] r2919 - plog/trunk/class/view/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Feb 7 09:54:13 GMT 2006


Author: mark
Date: 2006-02-07 09:54:13 +0000 (Tue, 07 Feb 2006)
New Revision: 2919

Modified:
   plog/trunk/class/view/admin/adminpostslistview.class.php
Log:
Change if( $xxx =="" ) to if( empty($xxx) ), It will reduce some PHP5 notice.

Modified: plog/trunk/class/view/admin/adminpostslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminpostslistview.class.php	2006-02-07 09:51:13 UTC (rev 2918)
+++ plog/trunk/class/view/admin/adminpostslistview.class.php	2006-02-07 09:54:13 UTC (rev 2919)
@@ -65,7 +65,7 @@
             if( $archiveDateFormat == "archive_date_format" ) $archiveDateFormat = "%B %Y";
 
                 // Add current month, even if there aren't any posts in it
-            if( $archiveStats[$curyear][$curmonth] == "") {
+            if( empty( $archiveStats[$curyear][$curmonth] )) {
                 $t = new Timestamp();
                 $name = $this->_locale->formatDate( $t, $archiveDateFormat );
                 $monthStr = Array( "name" => $name, 



More information about the pLog-svn mailing list