From 96d7b730fbb312085a9d1c0e9b4e7da24ec588d2 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 Jun 2006 05:10:48 +0000 Subject: [PATCH] Glpi server fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3692 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_goGlpiServer.inc | 9 +++++---- plugins/admin/systems/goGlpiServer.tpl | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc index ce7569dfe..83970daad 100644 --- a/plugins/admin/systems/class_goGlpiServer.inc +++ b/plugins/admin/systems/class_goGlpiServer.inc @@ -116,10 +116,11 @@ class goGlpiServer extends plugin{ function check() { $message = plugin::check(); - foreach(array("goGlpiAdmin","goGlpiDatabase") as $attr){ - if(empty($this->$attr)){ - $message[]= sprintf(_("The attribute '%s' is empty or contains invalid characters."), $attr); - } + if(empty($this->goGlpiAdmin)){ + $message[]= _("The attribute user is empty or contains invalid characters."); + } + if(empty($this->goGlpiDatabase)){ + $message[]= _("The attribute database is empty or contains invalid characters."); } return($message); } diff --git a/plugins/admin/systems/goGlpiServer.tpl b/plugins/admin/systems/goGlpiServer.tpl index 2cdec6554..94af7027a 100644 --- a/plugins/admin/systems/goGlpiServer.tpl +++ b/plugins/admin/systems/goGlpiServer.tpl @@ -1,7 +1,7 @@

{t}GLPI database information{/t}

- + @@ -11,7 +11,7 @@ value="{$goGlpiAdmin}"> value="{$goGlpiPassword}"> - + -- 2.30.2
{t}Logging DB user{/t}{t}Logging DB user{/t}{$must}
{t}Database{/t}{t}Database{/t}{$must}