diff options
author | xue <> | 2007-08-09 00:39:19 +0000 |
---|---|---|
committer | xue <> | 2007-08-09 00:39:19 +0000 |
commit | 264cd189aab82a7166302ff5ef9d46d0450f7a2f (patch) | |
tree | d6a1d3fa97e5a7e29cd53efd130d4588f5db67b2 | |
parent | dc20464209d5f853e482e6b3eafda56b9a2db7b7 (diff) |
fixed default behavior of TUrlMapping
-rw-r--r-- | framework/Web/TUrlMapping.php | 5 |
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]))
{
|