r25594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25593‎ | r25594 | r25595 >
Date:16:55, 6 September 2007
Author:proes
Status:old
Tags:
Comment:
Only update text when it is not empty
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Controller.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/Controller.php
@@ -509,9 +509,11 @@
510510 $o=OmegaWikiAttributes::getInstance();
511511
512512 $textId = $keyPath->peek(0)->textAttributeId;
 513+
513514 $text = $record->text;
514515
515 - updateTextAttributeValue($text, $textId);
 516+ if ($text != "")
 517+ updateTextAttributeValue($text, $textId);
516518 }
517519 }
518520

Status & tagging log