Fix "Notice: Undefined property: Category::$mId" errors
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 29 Oct 2015 21:36:29 +0000 (14:36 -0700)
committerOri.livneh <ori@wikimedia.org>
Thu, 29 Oct 2015 21:37:11 +0000 (21:37 +0000)
This should also improve performance while at it.

Change-Id: Ib62ce801f597c653d0a8d5fc19b81c1ce8e0f5f2

includes/Category.php

index 1b05f33..3860172 100644 (file)
@@ -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".