Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf84ad
)
MDL-50995 mod_forum: Coding style fixes
author
Andrew Nicols
<andrew@nicols.co.uk>
Wed, 9 Sep 2015 08:16:43 +0000
(16:16 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Wed, 9 Sep 2015 08:16:43 +0000
(16:16 +0800)
mod/forum/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/forum/externallib.php
b/mod/forum/externallib.php
index
b27f9e6
..
b3365c6
100644
(file)
--- a/
mod/forum/externallib.php
+++ b/
mod/forum/externallib.php
@@
-1034,11
+1034,11
@@
class mod_forum_external extends external_api {
$warnings = array();
- if (!
$parent = forum_get_post_full($params['postid'])) {
+ if (!$parent = forum_get_post_full($params['postid'])) {
throw new moodle_exception('invalidparentpostid', 'forum');
}
- if (!
$discussion = $DB->get_record("forum_discussions", array("id" => $parent->discussion))) {
+ if (!$discussion = $DB->get_record("forum_discussions", array("id" => $parent->discussion))) {
throw new moodle_exception('notpartofdiscussion', 'forum');
}