Browse Source

Minor - remove notice

ywarnier 14 years ago
parent
commit
ae30d61f1c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/test_manager.inc.php
  2. 1 1
      tests/test_webservices.php

+ 1 - 1
tests/test_manager.inc.php

@@ -196,7 +196,7 @@ function delete_test_course($course_code = 'TESTCOURSE') {
 	
 	if ($handle = opendir($path)) {
 		while (false !== ($file = readdir($handle))) {
-			if (strpos($file,$code)!==false) {
+			if (strpos($file,$course_code)!==false) {
 				if (is_dir($path.'/'.$file)) {
 					rmdirr($path.'/'.$file);
 				}

+ 1 - 1
tests/test_webservices.php

@@ -23,7 +23,7 @@ class TestSoapWebService extends UnitTestCase {
 		$security_key = $configuration['security_key'];
 		$ip_address = '::1';
 		$this->_secret_key = sha1($ip_address.$security_key);
-		$this->_encrypt_method = $_GLOBALS['userPasswordCrypted'];
+		$this->_encrypt_method = $GLOBALS['userPasswordCrypted'];
 		$this->_client = new SoapClient($configuration['root_web'].'main/webservices/soap.php?wsdl');
 	}