1
0

improve fetchcomments hook

This commit is contained in:
Garvin Hicking
2008-01-17 15:00:13 +00:00
parent 992adc4f8b
commit 3652788e31

View File

@ -181,10 +181,11 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
$comments = serendipity_db_query($query, false, 'assoc');
if (!is_array($comments)) {
return array();
$comments = array();
}
serendipity_plugin_api::hook_event('fetchcomments', $comments);
$addData = array('id' => $id, 'limit' => $limit, 'order' => $order, 'showAll' => $showAll, 'type' => $type, 'where' => $where);
serendipity_plugin_api::hook_event('fetchcomments', $comments, $addData);
return $comments;
}