Browse Source

Unset the prepared statement in the ORM class after the sql query has been executed

Mark Crane 11 years ago
parent
commit
8e1ff1a6d8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/classes/orm.php

+ 1 - 0
resources/classes/orm.php

@@ -136,6 +136,7 @@
 						}
 						$this->message = $message;
 						$this->result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
+						unset($prep_statement);
 						$m++;
 						return $this;
 					}