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:
Sam Minnee 2010-10-19 05:08:59 +00:00
parent 75101d329f
commit 4665369e31

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