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:
3516944
)
Fix FakeResultWrapper::fetchRow, which (contrary to ResultWrapper::fetchRow) didn...
author
mlitn
<git@mullie.eu>
Tue, 3 Jul 2012 17:33:42 +0000
(10:33 -0700)
committer
Catrope
<roan.kattouw@gmail.com>
Tue, 3 Jul 2012 17:35:19 +0000
(10:35 -0700)
This was originally part of https://gerrit.wikimedia.org/r/13880
Change-Id: I0b737bafa59c97ff0b658189c53022388bb7a56d
includes/db/DatabaseUtility.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseUtility.php
b/includes/db/DatabaseUtility.php
index
eacebcf
..
c846788
100644
(file)
--- a/
includes/db/DatabaseUtility.php
+++ b/
includes/db/DatabaseUtility.php
@@
-242,7
+242,11
@@
class FakeResultWrapper extends ResultWrapper {
$this->currentRow = false;
}
$this->pos++;
- return $this->currentRow;
+ if ( is_object( $this->currentRow ) ) {
+ return get_object_vars( $this->currentRow );
+ } else {
+ return $this->currentRow;
+ }
}
function seek( $row ) {