mod_command reg_url: correct field name

This commit is contained in:
Mathieu Parent 2011-02-23 01:13:00 +01:00
parent 0a14839bf9
commit e0a0a56f24
1 changed files with 2 additions and 2 deletions

View File

@ -90,11 +90,11 @@ static switch_status_t select_url(const char *user,
if (exclude_contact) {
sql = switch_mprintf("select url, '%q' "
"from registrations where user='%q' and realm='%q' "
"from registrations where reg_user='%q' and realm='%q' "
"and url not like '%%%s%%'", (concat != NULL) ? concat : "", user, domain, exclude_contact);
} else {
sql = switch_mprintf("select url, '%q' "
"from registrations where user='%q' and realm='%q'",
"from registrations where reg_user='%q' and realm='%q'",
(concat != NULL) ? concat : "", user, domain);
}