Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Preventing fatal errors from libraries getting included more than onc…

…e. Please remember to use require_once !
  • Loading branch information...
commit 3ccbb6eb9d0e82bab70d37a9e25de7df533dbffe 1 parent 1ecea97
mjollnir_ authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lams/testws.php
View
4 mod/lams/testws.php
@@ -1,8 +1,8 @@
Testing web service...
<BR>
<?php
- require("../../config.php");
- require($CFG->dirroot.'/lib/nusoap/nusoap.php');
+ require_once("../../config.php");
+ require_once($CFG->dirroot.'/lib/nusoap/nusoap.php');
$wsdl = "http://137.111.229.11:8080/lams/services/UserManagementService?wsdl";
$s = new soapclient($wsdl,true,false,false,false,false,2,3);
Please sign in to comment.
Something went wrong with that request. Please try again.