openrat-cms

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

commit 3df4a01308a1b27e4a3f89d5b49e70a2a18eaabb
parent efffccde162c6ed76883876af6f4491ff81bd06e
Author: dankert <devnull@localhost>
Date:   Tue, 15 Feb 2011 21:40:59 +0100

Fix: Leere Target-Variablen ├╝berspringen.

Diffstat:
dispatcher.php | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dispatcher.php b/dispatcher.php @@ -180,7 +180,7 @@ if ( isset($REQ[REQ_PARAM_TARGET]) $views[$REQ[REQ_PARAM_TARGET]] = array('action'=>$REQ[REQ_PARAM_ACTION],'subaction'=>$REQ[REQ_PARAM_SUBACTION]); } // Action und Subaction aus der View-Konfiguration ermitteln. -if ( !empty($REQ[REQ_PARAM_TARGET]) ) +if ( !empty($REQ[REQ_PARAM_TARGET]) && array_key_exists($REQ[REQ_PARAM_TARGET],$views) ) { $view = $REQ[REQ_PARAM_TARGET]; $action = $views[$view]['action' ]; @@ -534,10 +534,13 @@ else $showDuration = $conf['interface']['show_duration']; */ +/* + * $viewConfig = $views[$view]; if ( $viewConfig == null ) return; // View ist leer. + */ $do->forward();