Fix phpcs
This commit is contained in:
parent
f25c57b1f6
commit
1b25c4daa0
@ -26,7 +26,7 @@ if (!empty($extrafieldsobjectkey) && !empty($search_array_options) && is_array($
|
||||
|
||||
if ($crit != '' && in_array($typ, array('date', 'datetime', 'timestamp'))) {
|
||||
if (is_numeric($crit)) {
|
||||
if ($typ == 'date'){
|
||||
if ($typ == 'date') {
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
$crit = dol_get_first_hour($crit);
|
||||
}
|
||||
|
||||
@ -183,7 +183,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers
|
||||
$this->error = "ErrorLDAP ".$ldap->error;
|
||||
}
|
||||
}
|
||||
/*} elseif ($action == 'USER_SETINGROUP') {
|
||||
/*} elseif ($action == 'USER_SETINGROUP') {
|
||||
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||
if (!empty($conf->global->LDAP_SYNCHRO_ACTIVE) && $conf->global->LDAP_SYNCHRO_ACTIVE === 'dolibarr2ldap') {
|
||||
$ldap = new Ldap();
|
||||
@ -217,7 +217,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers
|
||||
$this->error = "ErrorLDAP ".$ldap->error;
|
||||
}
|
||||
}
|
||||
} elseif ($action == 'USER_REMOVEFROMGROUP') {
|
||||
} elseif ($action == 'USER_REMOVEFROMGROUP') {
|
||||
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||
if (!empty($conf->global->LDAP_SYNCHRO_ACTIVE) && $conf->global->LDAP_SYNCHRO_ACTIVE === 'dolibarr2ldap') {
|
||||
$ldap = new Ldap();
|
||||
|
||||
@ -855,10 +855,10 @@ class UserGroup extends CommonObject
|
||||
$valueofldapfield[] = $muser->_load_ldap_dn($info2);
|
||||
}
|
||||
$info[$conf->global->LDAP_GROUP_FIELD_GROUPMEMBERS] = (!empty($valueofldapfield) ? $valueofldapfield : '');
|
||||
}
|
||||
if (!empty($conf->global->LDAP_GROUP_FIELD_GROUPID)) {
|
||||
$info[$conf->global->LDAP_GROUP_FIELD_GROUPID] = $this->id;
|
||||
}
|
||||
}
|
||||
if (!empty($conf->global->LDAP_GROUP_FIELD_GROUPID)) {
|
||||
$info[$conf->global->LDAP_GROUP_FIELD_GROUPID] = $this->id;
|
||||
}
|
||||
return $info;
|
||||
}
|
||||
|
||||
|
||||
@ -2394,12 +2394,12 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
||||
// TODO When adding and when not ?
|
||||
/*<news:news>
|
||||
<news:publication>
|
||||
<news:name>The Example Times</news:name>
|
||||
<news:language>en</news:language>
|
||||
<news:name>The Example Times</news:name>
|
||||
<news:language>en</news:language>
|
||||
</news:publication>
|
||||
<news:publication_date>2008-12-23</news:publication_date>
|
||||
<news:title>Companies A, B in Merger Talks</news:title>
|
||||
</news:news>
|
||||
<news:title>Companies A, B in Merger Talks</news:title>
|
||||
</news:news>
|
||||
*/
|
||||
|
||||
$root->appendChild($url);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user