mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-50995 mod_forum: Coding style fixes
This commit is contained in:
parent
edf84ada39
commit
d3d8f81caa
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user