Commit 33df353a authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files
parents f53cb9ad 7a708d44
......@@ -487,7 +487,7 @@ class ArtefactTypeBlogPost extends ArtefactType {
'artefacttype', 'blogpost', 'parent', $id);
// Get the attached files.
if ($count > 0) {
if (count($result) > 0) {
$idlist = implode(', ', array_map(create_function('$a', 'return $a->id;'), $result));
$files = get_records_sql_array('
SELECT
......
......@@ -48,6 +48,7 @@ var postlist = new TableRenderer(
'index.json.php',
[undefined, undefined, undefined]
);
postlist.limit = 10;
postlist.rowfunction = function(d, n, gd) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment