From 970036e866db607058e96fbec48cd9b1df407549 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 5 Dec 2009 18:12:04 +0000 Subject: [PATCH] breaking change in fpdb, again, fixed (global $post was not set) --- fp-includes/core/core.fpdb.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fp-includes/core/core.fpdb.class.php b/fp-includes/core/core.fpdb.class.php index 6a6266b..fce4635 100644 --- a/fp-includes/core/core.fpdb.class.php +++ b/fp-includes/core/core.fpdb.class.php @@ -380,10 +380,13 @@ $this->comments = new FPDB_CommentList($qp->id, comment_getlist($qp->id)); $entry['comments'] = $this->comments->getCount(); } + + $post = $entry; if (!$entry) return $return; } else { $entry = array('subject' => $v); + $post = $entry; } $return = array($this->params->id, $entry);