[pLog-svn] r6828 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Feb 21 17:08:22 EST 2009
Author: jondaley
Date: 2009-02-21 17:08:22 -0500 (Sat, 21 Feb 2009)
New Revision: 6828
Modified:
plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
Log:
extra include. check whether the article updated successfully, rather than failing silently...?
Modified: plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/commentscommon.class.php 2009-02-21 21:34:37 UTC (rev 6827)
+++ plog/branches/lifetype-1.2/class/dao/commentscommon.class.php 2009-02-21 22:08:22 UTC (rev 6828)
@@ -82,9 +82,9 @@
$blog->setTotalTrackbacks($this->getNumItems( $this->getPrefix().'articles_comments',
'blog_id = '.$blog->getId().' AND type = '.$comment->getType()));
}
- lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );
+
$articles = new Articles();
- $articles->updateArticle( $article );
+ $result = $articles->updateArticle( $article );
lt_include( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
$blogs = new Blogs();
$blogs->updateBlog( $blog );
More information about the pLog-svn
mailing list