Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1e66d602
Commit
1e66d602
authored
Jan 11, 2007
by
Richard Mansfield
Browse files
don't attempt to return attached files for blogposts not listed
parent
45a90dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lib.php
View file @
1e66d602
...
...
@@ -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
...
...
htdocs/artefact/blog/view/index.js.php
View file @
1e66d602
...
...
@@ -48,6 +48,7 @@ var postlist = new TableRenderer(
'index.json.php',
[undefined, undefined, undefined]
);
postlist.limit = 10;
postlist.rowfunction = function(d, n, gd) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment