more and more checkstyle fixes
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -71,7 +71,7 @@ class ConfigDaemon
|
||||
/**
|
||||
* cache of sql-data if used
|
||||
*/
|
||||
private $_sqldata_cache = null;
|
||||
private $sqldata_cache = null;
|
||||
|
||||
/**
|
||||
* Human - readable title of this service
|
||||
@@ -441,15 +441,15 @@ class ConfigDaemon
|
||||
return '';
|
||||
}
|
||||
} elseif (preg_match('/^sql\.(.*)$/', $matches[1], $match)) {
|
||||
if (is_null($this->_sqldata_cache)) {
|
||||
if (is_null($this->sqldata_cache)) {
|
||||
// read in sql-data (if exists)
|
||||
if (file_exists(\Froxlor\Froxlor::getInstallDir() . "/lib/userdata.inc.php")) {
|
||||
require \Froxlor\Froxlor::getInstallDir() . "/lib/userdata.inc.php";
|
||||
unset($sql_root);
|
||||
$this->_sqldata_cache = $sql;
|
||||
$this->sqldata_cache = $sql;
|
||||
}
|
||||
}
|
||||
return isset($this->_sqldata_cache[$match[1]]) ? $this->_sqldata_cache[$match[1]] : '';
|
||||
return isset($this->sqldata_cache[$match[1]]) ? $this->sqldata_cache[$match[1]] : '';
|
||||
}
|
||||
}, $content);
|
||||
return $content;
|
||||
|
||||
Reference in New Issue
Block a user