mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +02:00
Merge branch 'MDL-42150-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
8431c290fd
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class page_editor {
|
||||||
$added = 0;
|
$added = 0;
|
||||||
foreach ($comments as $record) {
|
foreach ($comments as $record) {
|
||||||
// Force these.
|
// Force these.
|
||||||
if ($record instanceof stdClass) {
|
if (!($record instanceof comment)) {
|
||||||
$comment = new comment($record);
|
$comment = new comment($record);
|
||||||
} else {
|
} else {
|
||||||
$comment = $record;
|
$comment = $record;
|
||||||
|
@ -163,7 +163,7 @@ class page_editor {
|
||||||
$added = 0;
|
$added = 0;
|
||||||
foreach ($annotations as $record) {
|
foreach ($annotations as $record) {
|
||||||
// Force these.
|
// Force these.
|
||||||
if ($record instanceof stdClass) {
|
if (!($record instanceof annotation)) {
|
||||||
$annotation = new annotation($record);
|
$annotation = new annotation($record);
|
||||||
} else {
|
} else {
|
||||||
$annotation = $record;
|
$annotation = $record;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue