From: Aaron Schulz Date: Thu, 29 Oct 2015 21:36:29 +0000 (-0700) Subject: Fix "Notice: Undefined property: Category::$mId" errors X-Git-Tag: 1.31.0-rc.0~9174 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=63bf378f7ef8906a6bd97b47037f012fd3894c3a;p=lhc%2Fweb%2Fwiklou.git Fix "Notice: Undefined property: Category::$mId" errors This should also improve performance while at it. Change-Id: Ib62ce801f597c653d0a8d5fc19b81c1ce8e0f5f2 --- diff --git a/includes/Category.php b/includes/Category.php index 1b05f33a96..3860172570 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -327,7 +327,7 @@ class Category { array( 'LOCK IN SHARE MODE' ) ); - if ( $this->mId ) { + if ( $this->mID ) { # The category row already exists, so do a plain UPDATE instead # of INSERT...ON DUPLICATE KEY UPDATE to avoid creating a gap # in the cat_id sequence. The row may or may not be "affected".