Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | } |
112 | 112 | $vc[0] = true; |
113 | 113 | } |
114 | | - return new $dv[2]($dv[3]); |
| 114 | + $result = new $vc[2]($vc[3]); |
115 | 115 | } else { |
116 | 116 | // check for n-ary types |
117 | 117 | $types = explode(';', $typestring); |
— | — | @@ -125,12 +125,12 @@ |
126 | 126 | ///TODO |
127 | 127 | $type = SMWTypeHandlerFactory::getTypeHandlerByLabel($typestring); |
128 | 128 | $result = new SMWOldDataValue($type); |
129 | | - if ($value !== false) { |
130 | | - $result->setUserValue($value); |
131 | | - } |
132 | | - return $result; |
133 | 129 | } |
134 | 130 | } |
| 131 | + if ($value !== false) { |
| 132 | + $result->setUserValue($value); |
| 133 | + } |
| 134 | + return $result; |
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |