Browse code

Serialization bug fix

RafaƂ Szklarczyk authored on 08/10/2019 11:57:41
Showing 1 changed files
... ...
@@ -66,7 +66,7 @@ class Serialization{
66 66
                 foreach($registeredTypes as $rtype){
67 67
                     $t = explode("/", $type);
68 68
                     $rt = explode("/", $rtype);
69
-                    if(($t[0]=="*" || $rt[0]=="*" || $t[0]==$t[0]) && ($t[1]=="*" || $rt[1]=="*" || $t[1]==$t[1])){
69
+                    if(($t[0]=="*" || $rt[0]=="*" || $t[0]==$rt[0]) && ($t[1]=="*" || $rt[1]=="*" || $t[1]==$rt[1])){
70 70
                         return $rtype;
71 71
                     }
72 72
                 }