Fix some PHP warnings

This commit is contained in:
Benjamin Renard 2020-05-18 20:10:18 +02:00
parent e1cce4e696
commit 76577c058b
2 changed files with 2 additions and 2 deletions

View file

@ -1806,7 +1806,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
return $this -> cache['subDnValue'];
}
elseif ($key=='subDnName') {
if ($this -> cache['subDnName']) {
if (isset($this -> cache['subDnName']) && $this -> cache['subDnName']) {
return $this -> cache['subDnName'];
}
$this -> cache['subDnName'] = self :: getSubDnName($this -> dn);

View file

@ -226,7 +226,7 @@ class LSrelation {
* @retval void
*/
public static function displayInLSview($object) {
if (($object instanceof LSldapObject) && (is_array($object -> config['LSrelation']))) {
if (($object instanceof LSldapObject) && isset($object -> config['LSrelation']) && is_array($object -> config['LSrelation'])) {
$LSrelations=array();
$LSrelations_JSparams=array();
foreach($object -> config['LSrelation'] as $relationName => $relationConf) {