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:
Sean Harvey 2010-10-14 05:01:22 +00:00 committed by Sam Minnee
parent 9f673c1e9a
commit f58644116d

View File

@ -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) {