[pLog-svn] r4468 - plog/branches/lifetype-1.1.4/class/action
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Jan 2 22:10:42 GMT 2007
Author: oscar
Date: 2007-01-02 22:10:41 +0000 (Tue, 02 Jan 2007)
New Revision: 4468
Modified:
plog/branches/lifetype-1.1.4/class/action/viewarticleaction.class.php
Log:
Fixed mantis issue 1147 (http://bugs.lifetype.net/view.php?id=1147), somehow we never noticed anything about this...
Modified: plog/branches/lifetype-1.1.4/class/action/viewarticleaction.class.php
===================================================================
--- plog/branches/lifetype-1.1.4/class/action/viewarticleaction.class.php 2007-01-02 21:48:11 UTC (rev 4467)
+++ plog/branches/lifetype-1.1.4/class/action/viewarticleaction.class.php 2007-01-02 22:10:41 UTC (rev 4468)
@@ -106,10 +106,11 @@
{
include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
$articles = new Articles();
- $id = $articles->getBlogArticleByTitle( $slug, $this->_blogInfo->getId());
+ $article = $articles->getBlogArticleByTitle( $slug, $this->_blogInfo->getId());
+ $article ? $id = $article->getId() : $id = 0;
// if the article isn't found, we will save a referrer to
// the main page, since $id will be 0.
- $this->_updateArticleReferrersById($id);
+ $this->_updateArticleReferrersById( $id );
}
/**
More information about the pLog-svn
mailing list