From 2c9d7467416344ea1a2758cff685c56e5a6a1d9b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Apr 2006 13:35:51 +0000 Subject: [PATCH] Added error messages for remove_from_parent git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index fb709d0d9..80660f27e 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -1020,7 +1020,6 @@ $ldap->modify ($this->attrs); unset($this->$val); } } - if(array_key_exists('config', $_SESSION) && array_key_exists('SERVERS', $_SESSION['config']->data) && array_key_exists('FON', $_SESSION['config']->data['SERVERS']) && @@ -1034,8 +1033,8 @@ $ldap->modify ($this->attrs); // Check if we are connected correctly if(!$r_con){ - $this->generate_error = sprintf(_("The MySQL Server '%s' isn't reachable as user '%s', check GOsa log for mysql error."), - $a_SETUP['SERVER'],$a_SETUP['LOGIN']); + print_red(sprintf(_("The MySQL Server '%s' isn't reachable as user '%s', check GOsa log for mysql error."), + $a_SETUP['SERVER'],$a_SETUP['LOGIN'])); gosa_log(@mysql_error()); return false; } @@ -1045,7 +1044,7 @@ $ldap->modify ($this->attrs); // Test if we have the database selected correctly if(!$db){ - $this->generate_error = sprintf(_("Can't select database %s on %s."),$a_SETUP['DB'],$a_SETUP['SERVER']); + print_red(sprintf(_("Can't select database %s on %s."),$a_SETUP['DB'],$a_SETUP['SERVER'])); gosa_log(@mysql_error()); return false; } -- 2.30.2