openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3b3908310ce512c4df4014ac34970ca290d50cf0
parent 64d2821c676e7f8d74a022e7c5625bbae40ad688
Author: dankert <devnull@localhost>
Date:   Wed, 23 Dec 2009 23:01:29 +0100

Nicht initialisierte Variablen nicht benutzen.

Diffstat:
actionClasses/IndexAction.class.php | 37++++++++++++++++---------------------
1 file changed, 16 insertions(+), 21 deletions(-)

diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php @@ -1134,29 +1134,24 @@ class IndexAction extends Action Session::setElement($element); } - $project = Session::getProject(); - - if ( $project->projectid == PROJECTID_ADMIN ) - { - $project->name = lang('GLOBAL_ADMINISTRATION'); - Session::setProject( $project ); - - Session::setProjectLanguage( '' ); - Session::setProjectModel ( '' ); - Session::setObject ( '' ); - } - - $db = Session::getDatabase(); -// $this->setTemplateVar( 'title',$user->name.'@'.$project->name.' ('.$db->conf['comment'].')' ); -// $this->setTemplateVar( 'title',$project->name.' ('.$db->conf['comment'].')' ); - $this->setTemplateVar( 'title',$project->name ); - - $object = Session::getObject(); - + $project = Session::getProject(); + $object = Session::getObject(); $elementid = 0; - if ( is_object($project) ) - { + if ( is_object($project) ) + { + if ( $project->projectid == PROJECTID_ADMIN ) + { + $project->name = lang('GLOBAL_ADMINISTRATION'); + Session::setProject( $project ); + + Session::setProjectLanguage( '' ); + Session::setProjectModel ( '' ); + Session::setObject ( '' ); + } + + $this->setTemplateVar( 'title',$project->name ); + if ( is_object($object) ) { $type = $object->getType();