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 (from r112288)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112950 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
75101d329f
commit
4665369e31
@ -1058,8 +1058,8 @@ class MySQLQuery extends SS_Query {
|
||||
$this->handle = $handle;
|
||||
}
|
||||
|
||||
public function __destroy() {
|
||||
mysql_free_result($this->handle);
|
||||
public function __destruct() {
|
||||
if(is_resource($this->handle)) mysql_free_result($this->handle);
|
||||
}
|
||||
|
||||
public function seek($row) {
|
||||
|
Loading…
Reference in New Issue
Block a user