mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Renamed MySQLQuery::__destroy() renamed to __destruct() so that it is called properly after the object is destroyed
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@112288 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9f673c1e9a
commit
f58644116d
@ -1058,8 +1058,8 @@ class MySQLQuery extends SS_Query {
|
|||||||
$this->handle = $handle;
|
$this->handle = $handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destroy() {
|
public function __destruct() {
|
||||||
mysql_free_result($this->handle);
|
if(is_resource($this->handle)) mysql_free_result($this->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function seek($row) {
|
public function seek($row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user