commit 9c9fad6beec98c4fd1854819504b24724aa7d7f9
parent d124599b37017b98f59b8cd340d663e84cde131d
Author: dankert <devnull@localhost>
Date: Wed, 24 Oct 2007 20:55:52 +0200
Fehlermeldung vermeiden, wenn Konfigurationsangaben nicht gefunden werden.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php
@@ -256,8 +256,8 @@ class IndexAction extends Action
$dbids[$dbname] = $dbconf['comment'];
}
- $this->setTemplateVar('login_name' ,$conf['security']['default']['username']);
- $this->setTemplateVar('login_password',$conf['security']['default']['password']);
+ $this->setTemplateVar('login_name' ,@$conf['security']['default']['username']);
+ $this->setTemplateVar('login_password',@$conf['security']['default']['password']);
$this->setTemplateVar( 'dbids',$dbids );
@@ -875,13 +875,13 @@ class IndexAction extends Action
// Menüpunkt "Anwendungen" wird nur angezeigt, wenn weitere Anwendungen
// konfiguriert sind.
case 'applications':
- return count($conf['applications']) > 0;
+ return count(@$conf['applications']) > 0;
case 'register':
- return $conf['login']['register'];
+ return @$conf['login']['register'];
case 'send_password':
- $conf['login']['send_password'];
+ @$conf['login']['send_password'];
case 'administration':
return $this->userIsAdmin();