Skip to content

Commit

Permalink
MDL-24425 mnet: fixed SQL DISTINCT from a table containing text field
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Oct 7, 2010
1 parent b47eb9a commit 672bbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/mnet/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ function loginpage_idp_list($wantsurl) {
global $DB, $CFG;
// strip off wwwroot, since the remote site will prefix it's return url with this
$wantsurl = preg_replace('/(' . preg_quote($CFG->wwwroot, '/') . '|' . preg_quote($CFG->httpswwwroot, '/') . ')/', '', $wantsurl);
if (!$hosts = $DB->get_records_sql('SELECT DISTINCT h.*, a.sso_jump_url,a.name as application
if (!$hosts = $DB->get_records_sql('SELECT DISTINCT h.id, h.wwwroot, h.name, a.sso_jump_url,a.name as application
FROM {mnet_host} h
JOIN {mnet_host2service} m ON h.id=m.hostid
JOIN {mnet_service} s ON s.id=m.serviceid
Expand Down

0 comments on commit 672bbc7

Please sign in to comment.