dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
freeing a result object
[lhc/web/wiklou.git]
/
includes
/
Database.php
diff --git
a/includes/Database.php
b/includes/Database.php
index
568f87a
..
8acd3d7
100644
(file)
--- a/
includes/Database.php
+++ b/
includes/Database.php
@@
-237,7
+237,9
@@
class Database {
if ( $res === false || !$this->numRows( $res ) ) {
return false;
}
if ( $res === false || !$this->numRows( $res ) ) {
return false;
}
- return $this->fetchObject( $res );
+ $obj = $this->fetchObject( $res );
+ $this->freeResult( $res );
+ return $obj;
}
# Removes most variables from an SQL query and replaces them with X or N for numbers.
}
# Removes most variables from an SQL query and replaces them with X or N for numbers.