Skip to content

Commit

Permalink
MDL-28121, fixed deprecated split() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Jun 30, 2011
1 parent 7fde489 commit 8819c47
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 @@ -340,7 +340,7 @@ public function get_service_required_capabilities($serviceid) {
$functions = $this->get_external_functions(array($serviceid));
$requiredusercaps = array();
foreach ($functions as $function) {
$functioncaps = split(',', $function->capabilities);
$functioncaps = explode(',', $function->capabilities);
if (!empty($functioncaps) and !empty($functioncaps[0])) {
foreach ($functioncaps as $functioncap) {
$requiredusercaps[$function->name][] = trim($functioncap);
Expand Down

0 comments on commit 8819c47

Please sign in to comment.