Skip to content

Commit

Permalink
MDL-34368 fix another validuntil condition
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 1, 2012
1 parent d3d1fec commit 4c7f536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ protected function load_function_info() {
FROM {external_services} s
JOIN {external_services_functions} sf ON (sf.externalserviceid = s.id AND s.restrictedusers = 1 AND sf.functionname = :name2)
JOIN {external_services_users} su ON (su.externalserviceid = s.id AND su.userid = :userid)
WHERE s.enabled = 1 AND su.validuntil IS NULL OR su.validuntil < :now $wscond2";
WHERE s.enabled = 1 AND (su.validuntil IS NULL OR su.validuntil < :now) $wscond2";
$params = array_merge($params, array('userid'=>$USER->id, 'name1'=>$function->name, 'name2'=>$function->name, 'now'=>time()));

$rs = $DB->get_recordset_sql($sql, $params);
Expand Down

0 comments on commit 4c7f536

Please sign in to comment.