Fix scrutinizer
This commit is contained in:
parent
5085db36a7
commit
1d09ffa4c6
@ -79,10 +79,12 @@ if ($action == 'update') {
|
|||||||
if (!empty($max_rank)) {
|
if (!empty($max_rank)) {
|
||||||
$static_skill = new Skill($db);
|
$static_skill = new Skill($db);
|
||||||
$TAllSkills = $static_skill->fetchAll();
|
$TAllSkills = $static_skill->fetchAll();
|
||||||
foreach ($TAllSkills as &$skill) {
|
if (is_array($TAllSkills)) {
|
||||||
if (empty($skill->lines)) $skill->fetchLines();
|
foreach ($TAllSkills as &$skill) {
|
||||||
if (count($skill->lines) < $conf->global->HRM_MAXRANK) {
|
if (empty($skill->lines)) $skill->fetchLines();
|
||||||
$skill->createSkills(count($skill->lines) + 1);
|
if (count($skill->lines) < $conf->global->HRM_MAXRANK) {
|
||||||
|
$skill->createSkills(count($skill->lines) + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -851,8 +851,11 @@ if ($action == 'edit') {
|
|||||||
$companyemail = getDolGlobalString('MAIN_INFO_SOCIETE_MAIL');
|
$companyemail = getDolGlobalString('MAIN_INFO_SOCIETE_MAIL');
|
||||||
$dnsinfo = false;
|
$dnsinfo = false;
|
||||||
if (!empty($companyemail) && function_exists('dns_get_record')) {
|
if (!empty($companyemail) && function_exists('dns_get_record')) {
|
||||||
$domain = array_pop(explode('@', $companyemail));
|
$arrayofemailparts = explode('@', $companyemail);
|
||||||
$dnsinfo = dns_get_record($domain, DNS_TXT);
|
if (count($arrayofemailparts) == 2) {
|
||||||
|
$domain = $arrayofemailparts[1];
|
||||||
|
$dnsinfo = dns_get_record($domain, DNS_TXT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!empty($dnsinfo) && is_array($dnsinfo)) {
|
if (!empty($dnsinfo) && is_array($dnsinfo)) {
|
||||||
foreach ($dnsinfo as $info) {
|
foreach ($dnsinfo as $info) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user