Model/Tag.php
changeset 58 87bf6ec8af90
parent 43 54f204bceb28
child 62 10be6b9e55e7
--- 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 "";
         }
     }