WHERE '1' is not cross-db. MDL-8280

This commit is contained in:
stronk7 2007-01-23 16:09:00 +00:00
parent 5cd2273fe1
commit c4b654bc3c
2 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@
}
/// Update the custom user fields
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
foreach ($categories as $category) {
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {

View File

@ -319,7 +319,7 @@ class user_edit_form extends moodleform {
$mform->hardFreeze($freezefields);
/// Next the customisable categories
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
foreach ($categories as $category) {
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {
@ -395,7 +395,7 @@ class user_edit_form extends moodleform {
/// And now we validate the custom data fields
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
foreach ($categories as $category) {
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {