dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e4eef
)
Fix "Notice: Undefined property: Category::$mId" errors
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 29 Oct 2015 21:36:29 +0000
(14:36 -0700)
committer
Ori.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
patch
|
blob
|
history
diff --git
a/includes/Category.php
b/includes/Category.php
index
1b05f33
..
3860172
100644
(file)
--- a/
includes/Category.php
+++ b/
includes/Category.php
@@
-327,7
+327,7
@@
class Category {
array( 'LOCK IN SHARE MODE' )
);
- if ( $this->mI
d
) {
+ if ( $this->mI
D
) {
# 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".