[pLog-svn] r3687 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Jul 5 12:21:58 GMT 2006
Author: oscar
Date: 2006-07-05 12:21:57 +0000 (Wed, 05 Jul 2006)
New Revision: 3687
Modified:
plog/trunk/class/dao/articlecategories.class.php
Log:
removed one warning message
Modified: plog/trunk/class/dao/articlecategories.class.php
===================================================================
--- plog/trunk/class/dao/articlecategories.class.php 2006-07-05 12:03:10 UTC (rev 3686)
+++ plog/trunk/class/dao/articlecategories.class.php 2006-07-05 12:21:57 UTC (rev 3687)
@@ -312,6 +312,7 @@
function getArticleCategories( $articleId, $blogId = -1 )
{
$categoryLinks = $this->_cache->getData( $articleId, CACHE_ARTICLE_CATEGORIES_LINK );
+
if( !$categoryLinks ) {
$query = "SELECT category_id FROM ".$this->getPrefix()."article_categories_link
WHERE article_id = '".Db::qstr( $articleId )."'";
@@ -327,6 +328,7 @@
return( Array());
}
+ $categories = Array();
foreach( $categoryLinks as $categoryLink ) {
$category = $this->getCategory( $categoryLink );
if( $category )
More information about the pLog-svn
mailing list