Deux corrections
This commit is contained in:
parent
f81924c72c
commit
ee88b4b77d
|
@ -110,6 +110,7 @@ foreach ( $variables->strata_order as $strata) {
|
||||||
break;
|
break;
|
||||||
case 'FQDN_CREATOR':
|
case 'FQDN_CREATOR':
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
if (isset($allvars['FQDN_CREATOR']) && is_array($allvars['FQDN_CREATOR'])) {
|
||||||
foreach ($allvars['FQDN_CREATOR'] as $ttk => $ttv ) {
|
foreach ($allvars['FQDN_CREATOR'] as $ttk => $ttv ) {
|
||||||
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
||||||
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
||||||
|
@ -118,12 +119,14 @@ foreach ( $variables->strata_order as $strata) {
|
||||||
}
|
}
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
}
|
}
|
||||||
|
} // isset
|
||||||
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
||||||
add_var($strata, $members_list);
|
add_var($strata, $members_list);
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
break;
|
break;
|
||||||
case 'FQDN':
|
case 'FQDN':
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
if ( isset($allvars['FQDN']) && is_array($allvars['FQDN'])) {
|
||||||
foreach ($allvars['FQDN'] as $ttk => $ttv ) {
|
foreach ($allvars['FQDN'] as $ttk => $ttv ) {
|
||||||
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
||||||
echo sprintf(_("Overwritted by %s"), $panel_url[$ttk])." → ";
|
echo sprintf(_("Overwritted by %s"), $panel_url[$ttk])." → ";
|
||||||
|
@ -132,12 +135,14 @@ foreach ( $variables->strata_order as $strata) {
|
||||||
}
|
}
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
}
|
}
|
||||||
|
} //isset
|
||||||
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
||||||
add_var($strata, $panel_url);
|
add_var($strata, $panel_url);
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
break;
|
break;
|
||||||
case 'CREATOR':
|
case 'CREATOR':
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
if (isset($allvars['CREATOR']) && is_array($allvars['CREATOR'])) {
|
||||||
foreach ($allvars['CREATOR'] as $ttk => $ttv ) {
|
foreach ($allvars['CREATOR'] as $ttk => $ttv ) {
|
||||||
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
||||||
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
||||||
|
@ -146,12 +151,14 @@ foreach ( $variables->strata_order as $strata) {
|
||||||
}
|
}
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
}
|
}
|
||||||
|
} //isset
|
||||||
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
||||||
add_var($strata, $creators_list );
|
add_var($strata, $creators_list );
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
break;
|
break;
|
||||||
case 'MEMBER':
|
case 'MEMBER':
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
if (isset($allvars['MEMBER']) && is_array($allvars['MEMBER'])) {
|
||||||
foreach ($allvars['MEMBER'] as $ttk => $ttv ) {
|
foreach ($allvars['MEMBER'] as $ttk => $ttv ) {
|
||||||
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
if ( isset($ttv[$var]) && is_array( $ttv[$var])) {
|
||||||
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
echo sprintf(_("Overwritted by %s"), $members[$ttk]['login'])." → ";
|
||||||
|
@ -160,6 +167,7 @@ foreach ( $variables->strata_order as $strata) {
|
||||||
}
|
}
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
}
|
}
|
||||||
|
} //isset
|
||||||
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
echo "<a href='javascript:add_var(\"$strata\");'>"._("Add")."</a>";
|
||||||
add_var($strata, $members_list);
|
add_var($strata, $members_list);
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
|
|
|
@ -163,7 +163,7 @@ class m_variables {
|
||||||
if (isset($conf[$name])) {
|
if (isset($conf[$name])) {
|
||||||
return $conf[$name]['value'];
|
return $conf[$name]['value'];
|
||||||
} elseif (!is_null($createit_comment)) {
|
} elseif (!is_null($createit_comment)) {
|
||||||
$this->variable_update_or_create($name, $default, 'DEFAULT', null, null, $createit_comment);
|
$this->variable_update_or_create($name, $default, 'DEFAULT', 'null', 'null', $createit_comment);
|
||||||
}
|
}
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue