openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9be01e91c81f0cc2d2b02343ad325d4493552737
parent d217d197757aaa242b42175d853bb75256ec7a32
Author: dankert <devnull@localhost>
Date:   Tue, 20 Mar 2012 22:46:47 +0100

Fix: SQlite3 objektorientiert ansteuern.

Diffstat:
db/sqlite3.class.php | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/db/sqlite3.class.php b/db/sqlite3.class.php @@ -72,9 +72,9 @@ class DB_sqlite3 { $this->result = $this->connection->query($query); - if ( !$result ) + if ( !$this->result ) { - $this->error = 'Database error: '.SQLite3::lastErrorMsg(); + $this->error = 'Database error: '.$this->connection->lastErrorMsg(); return FALSE; } @@ -132,7 +132,7 @@ class DB_sqlite3 } } - $this->stmt = sqlite3_prepare($this->connection,$query); + $this->stmt = $this->connection->prepare($query); } @@ -141,6 +141,10 @@ class DB_sqlite3 $this->params[$param] = $value; } + function clear() + { + $this->params = array(); + } } ?> \ No newline at end of file