BUG - Notices found in the heartbeat call

- The attribute "workspaces" not defined in the class "serverConfiguration"
- Define the missing attribute in the class
This commit is contained in:
Julio Cesar Laura
2012-07-18 09:53:39 -04:00
parent ea32fd1d40
commit 2be5a0837d
2 changed files with 53 additions and 52 deletions

View File

@@ -53,6 +53,7 @@ class serverConf {
var $logins;
private $lanDirection;
private $lanLanguage;
public $workspaces = array();
public function __construct() {

View File

@@ -186,7 +186,7 @@ function buildData(){
$licenseDomainWorkspace = null;
$licenseNumber = 0;
if (file_exists(PATH_PLUGINS . "enterprise" . PATH_SEP . "class.pmLicenseManager.php")) {
if (file_exists(PATH_PLUGINS . "enterprise" . PATH_SEP . "class.pmLicenseManager.php") && class_exists('enterprisePlugin')) {
$licenseManager = &pmLicenseManager::getSingleton();
preg_match("/^license_(.*).dat$/", $licenseManager->file, $matches);