[pLog-svn] r2938 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Feb 9 19:06:21 GMT 2006
Author: mark
Date: 2006-02-09 19:06:20 +0000 (Thu, 09 Feb 2006)
New Revision: 2938
Modified:
plog/trunk/class/dao/mylinks.class.php
Log:
Fixed a bug that we forgot check the return array is empty or not.
Modified: plog/trunk/class/dao/mylinks.class.php
===================================================================
--- plog/trunk/class/dao/mylinks.class.php 2006-02-09 18:32:59 UTC (rev 2937)
+++ plog/trunk/class/dao/mylinks.class.php 2006-02-09 19:06:20 UTC (rev 2938)
@@ -42,8 +42,11 @@
$page,
$itemsPerPage );
+ if( !$blogLinks )
+ return Array();
+
$result = Array();
- if( $blogLinks && $categoryId > 0 ) {
+ if( $categoryId > 0 ) {
foreach( $blogLinks as $link ) {
if( $link->getCategoryId() == $categoryId )
$result[] = $link;
More information about the pLog-svn
mailing list