fhiiqm/inc/dbconnect.inc.php
changeset 38 45c139f74ea4
parent 24 15f33315f045
child 40 6f4b105daa24
--- a/fhiiqm/inc/dbconnect.inc.php	Thu Apr 18 14:32:42 2013 +0200
+++ b/fhiiqm/inc/dbconnect.inc.php	Mon Jul 01 14:36:18 2013 +0200
@@ -89,7 +89,7 @@
 				else
 				{   //kein Ergebnis
 					$this->error = "";
-					$this->result->free();
+					if (isset($this->result) && is_object($this->result)) $this->result->free();
                     $this->_connid->next_result(); // wegen OUT-Parameter in stored procedures
 					return false;
 				}
@@ -125,7 +125,7 @@
 				else
 				{   //kein Ergebnis
 					$this->error = "";
-					$this->result->free();
+					if (isset($this->result) && is_object($this->result)) $this->result->free();
                     $this->_connid->next_result(); // wegen OUT-Parameter in stored procedures
 					return false;
 				}