MDL-65959 badge: Confirm assertion data is updated before awarding
[moodle.git] / badges / classes / backpack_api_mapping.php
index 5e70fe5..aa9155c 100644 (file)
@@ -362,6 +362,8 @@ class backpack_api_mapping {
             $response = $curl->get($url, $post, $options);
         } else if ($this->method == 'post') {
             $response = $curl->post($url, $post, $options);
+        } else if ($this->method == 'put') {
+            $response = $curl->put($url, $post, $options);
         }
         $response = json_decode($response);
         if (isset($response->result)) {