breaking change in fpdb, again, fixed (global $post was not set)
This commit is contained in:
parent
a20fb1702a
commit
970036e866
@ -380,10 +380,13 @@
|
|||||||
$this->comments = new FPDB_CommentList($qp->id, comment_getlist($qp->id));
|
$this->comments = new FPDB_CommentList($qp->id, comment_getlist($qp->id));
|
||||||
$entry['comments'] = $this->comments->getCount();
|
$entry['comments'] = $this->comments->getCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$post = $entry;
|
||||||
|
|
||||||
if (!$entry) return $return;
|
if (!$entry) return $return;
|
||||||
} else {
|
} else {
|
||||||
$entry = array('subject' => $v);
|
$entry = array('subject' => $v);
|
||||||
|
$post = $entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
$return = array($this->params->id, $entry);
|
$return = array($this->params->id, $entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user