MDL-48578 webservices: Fixed missing required library

This commit is contained in:
Juan Leyva
2015-01-28 14:44:28 +01:00
parent 146c80d338
commit ff936081dc
+1
View File
@@ -532,6 +532,7 @@ class core_message_external extends external_api {
*/
public static function search_contacts($searchtext, $onlymycourses = false) {
global $CFG, $USER;
require_once($CFG->dirroot . '/user/lib.php');
// Check if messaging is enabled.
if (!$CFG->messaging) {