summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2007-08-09 00:39:19 +0000
committerxue <>2007-08-09 00:39:19 +0000
commit264cd189aab82a7166302ff5ef9d46d0450f7a2f (patch)
treed6a1d3fa97e5a7e29cd53efd130d4588f5db67b2 /framework
parentdc20464209d5f853e482e6b3eafda56b9a2db7b7 (diff)
fixed default behavior of TUrlMapping
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/TUrlMapping.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php
index fb757244..23c3295b 100644
--- a/framework/Web/TUrlMapping.php
+++ b/framework/Web/TUrlMapping.php
@@ -280,9 +280,10 @@ class TUrlMapping extends TUrlManager
*/
public function constructUrl($serviceID,$serviceParam,$getItems,$encodeAmpersand,$encodeGetItems)
{
- if(!$this->_customUrl || !(is_array($getItems) || ($getItems instanceof Traversable)))
+ if(!$this->_customUrl)
return parent::constructUrl($serviceID,$serviceParam,$getItems,$encodeAmpersand,$encodeGetItems);
-
+ if(!(is_array($getItems) || ($getItems instanceof Traversable)))
+ $getItems=array();
$key=$serviceID.':'.$serviceParam;
if(isset($this->_constructRules[$key]))
{