From 63bf378f7ef8906a6bd97b47037f012fd3894c3a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 29 Oct 2015 14:36:29 -0700 Subject: [PATCH] Fix "Notice: Undefined property: Category::$mId" errors This should also improve performance while at it. Change-Id: Ib62ce801f597c653d0a8d5fc19b81c1ce8e0f5f2 --- includes/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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". -- 2.20.1