--- a/Model/Tag.php Tue Dec 06 14:53:12 2011 +0100
+++ b/Model/Tag.php Thu Dec 08 23:48:55 2011 +0100
@@ -15,7 +15,7 @@
abstract class Tag implements TagInterface {
- public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3);
+ public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3, 'unsemantized'=>4);
/**
* @var integer $id
@@ -317,6 +317,10 @@
*/
public function getUrlStatusText()
{
+ if(is_null($this->getUrlStatus()))
+ {
+ return null;
+ }
switch ($this->getUrlStatus()) {
case 0:
return "null_result";
@@ -326,6 +330,10 @@
return "homonyme";
case 3:
return "match";
+ case 4:
+ return "unsemantized";
+ default:
+ return "";
}
}