mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 17:40:26 +01:00
Merge branch 'MDL-72001-master' of git://github.com/roland04/moodle
This commit is contained in:
commit
a9dfde7543
@ -63,7 +63,7 @@ function my_copy_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index') {
|
||||
}
|
||||
|
||||
// Get the system default page
|
||||
if (!$systempage = $DB->get_record('my_pages', array('userid' => null, 'private' => $private))) {
|
||||
if (!$systempage = $DB->get_record('my_pages', array('userid' => null, 'name' => '__default', 'private' => $private))) {
|
||||
return false; // error
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ function my_reset_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index')
|
||||
}
|
||||
|
||||
// Get the system default page
|
||||
if (!$systempage = $DB->get_record('my_pages', array('userid' => null, 'private' => $private))) {
|
||||
if (!$systempage = $DB->get_record('my_pages', array('userid' => null, 'name' => '__default', 'private' => $private))) {
|
||||
return false; // error
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user