[pLog-svn] r2914 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Feb 7 09:20:15 GMT 2006
Author: mark
Date: 2006-02-07 09:20:15 +0000 (Tue, 07 Feb 2006)
New Revision: 2914
Modified:
plog/trunk/class/dao/bloginfo.class.php
Log:
Change if( $xxx =="" ) to if( empty($xxx) ), It will reduce some PHP5 notice.
According to the PHP manual, the empty() is much faster then string comparision.
Modified: plog/trunk/class/dao/bloginfo.class.php
===================================================================
--- plog/trunk/class/dao/bloginfo.class.php 2006-02-07 09:19:24 UTC (rev 2913)
+++ plog/trunk/class/dao/bloginfo.class.php 2006-02-07 09:20:15 UTC (rev 2914)
@@ -52,7 +52,7 @@
$this->_owner = $owner;
$this->_about = $about;
$this->_settings = $settings;
- if( $this->_settings == "" )
+ if( empty( $this->_settings ) )
$this->_settings = new BlogSettings();
$this->_id = $id;
More information about the pLog-svn
mailing list