mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 06:53:53 +01:00
Fix some PHP 7.0 syntax errors
This commit is contained in:
parent
534295d4f3
commit
4feec44639
2 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ class LSrelation extends LSlog_staticLoggerClass {
|
|||
// Check if it's a simple relation
|
||||
if ($this -> linkAttribute && $this -> linkAttributeValue) {
|
||||
// Check linkAttribute refered to an existing related object type attribute
|
||||
if (!$this -> LSobject :: hasAttr($this -> linkAttribute)) {
|
||||
if (!call_user_func(array($this -> LSobject, 'hasAttr'), $this -> linkAttribute)) {
|
||||
LSerror :: addErrorCode(
|
||||
'LSrelations_08',
|
||||
array(
|
||||
|
|
|
@ -449,7 +449,7 @@ class LSselect extends LSlog_staticLoggerClass {
|
|||
$editableAttr = self :: getConfig($id, "LSobjects.".$obj->type.".editableAttr");
|
||||
if (!$editableAttr)
|
||||
return true;
|
||||
if ($editableAttr && $obj->type :: hasAttr($editableAttr)) {
|
||||
if ($editableAttr && call_user_func(array($obj->type, 'hasAttr'), $editableAttr)) {
|
||||
return (LSsession::canEdit($obj->type, $obj->dn, $editableAttr))?1:0;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue