summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/TUrlMapping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php
index 960f32a3..987e725d 100644
--- a/framework/Web/TUrlMapping.php
+++ b/framework/Web/TUrlMapping.php
@@ -384,7 +384,7 @@ class TUrlMappingPattern extends TComponent
/**
* @var string url pattern to match.
*/
- private $_pattern='';
+ private $_pattern;
/**
* @var TMap parameter regular expressions.
*/
@@ -570,7 +570,7 @@ class TUrlMappingPattern extends TComponent
*/
public function supportCustomUrl($getItems)
{
- if(!$this->_customUrl || $this->getPattern()==='')
+ if(!$this->_customUrl || $this->getPattern()===null)
return false;
foreach($this->_parameters as $key=>$value)
{