fix bug in item edition in metaconsole
This commit is contained in:
parent
1436ec0782
commit
8554baef20
|
@ -221,7 +221,7 @@ switch ($action) {
|
||||||
$server_name = $item['server_name'];
|
$server_name = $item['server_name'];
|
||||||
|
|
||||||
// Metaconsole db connection.
|
// Metaconsole db connection.
|
||||||
if ($meta && $server_name != '') {
|
if ($meta && !empty($server_name)) {
|
||||||
$connection = metaconsole_get_connection($server_name);
|
$connection = metaconsole_get_connection($server_name);
|
||||||
if (metaconsole_load_external_db($connection) != NOERR) {
|
if (metaconsole_load_external_db($connection) != NOERR) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -2805,7 +2805,7 @@ function print_SLA_list($width, $action, $idItem=null)
|
||||||
foreach ($itemsSLA as $item) {
|
foreach ($itemsSLA as $item) {
|
||||||
$server_name = $item['server_name'];
|
$server_name = $item['server_name'];
|
||||||
// Metaconsole db connection.
|
// Metaconsole db connection.
|
||||||
if ($meta && $server_name != '') {
|
if ($meta && !empty($server_name)) {
|
||||||
$connection = metaconsole_get_connection(
|
$connection = metaconsole_get_connection(
|
||||||
$server_name
|
$server_name
|
||||||
);
|
);
|
||||||
|
@ -3133,7 +3133,7 @@ function print_General_list($width, $action, $idItem=null, $type='general')
|
||||||
foreach ($itemsGeneral as $item) {
|
foreach ($itemsGeneral as $item) {
|
||||||
$server_name = $item['server_name'];
|
$server_name = $item['server_name'];
|
||||||
// Metaconsole db connection.
|
// Metaconsole db connection.
|
||||||
if ($meta && $server_name != '') {
|
if ($meta && !empty($server_name)) {
|
||||||
$connection = metaconsole_get_connection(
|
$connection = metaconsole_get_connection(
|
||||||
$server_name
|
$server_name
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue