Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_WikiPage.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | /** |
4 | 4 | * This datavalue implements special processing suitable for defining |
5 | 5 | * wikipages as values of properties. This value container currently |
6 | | - * behaves somewhat special in that its xsdvalue is not containint all |
| 6 | + * behaves somewhat special in that its xsdvalue is not contained all |
7 | 7 | * relevant information (it just gives the DB-Key, not the namespace). |
8 | 8 | * TODO: This should change, but is not really critical now. |
9 | 9 | * |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | public function setValues($dbkey, $namespace, $id = false) { |
206 | 206 | $this->m_namespace = $namespace; |
207 | 207 | $this->setXSDValue($dbkey); |
208 | | - $this->m_id = $id; |
| 208 | + $this->m_id = $id ? $id : false; |
209 | 209 | } |
210 | 210 | |
211 | 211 | ///// Legacy methods for compatibility |