summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/TUrlMapping.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php
index 4c93f004..d8ed75a8 100644
--- a/framework/Web/TUrlMapping.php
+++ b/framework/Web/TUrlMapping.php
@@ -241,9 +241,7 @@ class TUrlMapping extends TUrlManager
{
foreach($config['urls'] as $url)
{
- $class=null;
- if(!isset($url['class']))
- $class=$defaultClass;
+ $class=isset($url['class'])?$url['class']:$defaultClass;
$properties = isset($url['properties'])?$url['properties']:array();
$this->buildUrlMapping($class,$properties,$url);
}