r30837 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30836‎ | r30837 | r30838 >
Date:15:44, 11 February 2008
Author:yaron
Status:old
Tags:
Comment:
Fix for small PHP bug
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormEditTab.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormEditTab.php
@@ -9,7 +9,7 @@
1010 $fname = 'SFFormEditTab';
1111 // make sure that this is not itself a category page, and that the user
1212 // is allowed to edit it
13 - if (($obj->mTitle != null) && ($obj->mTitle->getNamespace() != NS_CATEGORY)) {
 13+ if (isset($obj->mTitle) && ($obj->mTitle->getNamespace() != NS_CATEGORY)) {
1414 $form_name = sffGetFormForArticle($obj);
1515 if ($form_name) {
1616 global $wgRequest;

Status & tagging log