Browse files

Initialize the $message variable

  • Loading branch information...
1 parent 5e0da4b commit c5fbfafa6293073c834e7368b22e9a71cefa2f53 donal72 committed Nov 1, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/mnet/enrol.php
View
2 enrol/mnet/enrol.php
@@ -495,7 +495,7 @@ function fetch_remote_courses($mnethostid) {
} else {
foreach ($mnetrequest->error as $errormessage) {
list($code, $errormessage) = array_map('trim',explode(':', $errormessage, 2));
- $message .= "ERROR $code:<br/>$errormessage<br/>";
+ $message = "ERROR $code:<br/>$errormessage<br/>";
}
error("RPC enrol/mnet/available_courses:<br/>$message");
}

0 comments on commit c5fbfaf

Please sign in to comment.