[svn r13968] Minor code improvement (avoid notices)

skala
Yannick Warnier 18 years ago
parent 11a97c7c8b
commit fa237d3589
  1. 8
      main/inc/lib/main_api.lib.php

@ -1028,7 +1028,7 @@ class api_failure
* the change when static class variable will be possible. And the API won't
* change.
*/
var $api_failureList = array ();
public $api_failureList = array ();
/**
* Pile the last failure in the failure list
*
@ -1039,8 +1039,7 @@ class api_failure
*/
function set_failure($failureType)
{
global $api_failureList;
$api_failureList[] = $failureType;
$this->api_failureList[] = $failureType;
return false;
}
/**
@ -1052,8 +1051,7 @@ class api_failure
*/
function get_last_failure()
{
global $api_failureList;
return $api_failureList[count($api_failureList) - 1];
return $this->api_failureList[count($this->api_failureList) - 1];
}
}

Loading…
Cancel
Save