commit 7dc74b769917ea118dce745a2da9bc9be68b918e parent a527d66181f97e873f6146df2851f8df5cc2f075 Author: dankert <devnull@localhost> Date: Wed, 23 Dec 2009 23:10:31 +0100 Nicht initialisierte Variablen nicht benutzen. Diffstat:
db/db.class.php | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/db/db.class.php b/db/db.class.php @@ -144,9 +144,9 @@ class DB // SQL bei Verbindungsaufbau ausführen. - $cmd = $this->conf['connection_sql']; - if ( ! empty($cmd) ) + if ( isset($this->conf['connection_sql']) && ! empty($this->conf['connection_sql']) ) { + $cmd = $this->conf['connection_sql']; $ok = $this->client->query($cmd); if ( ! $ok ) @@ -170,7 +170,7 @@ class DB */ function query( $query ) { - if ( is_object($query) && $this->conf['prepare'] ) + if ( is_object($query) && isset($this->conf['prepare']) && $this->conf['prepare'] ) { $this->client->clear(); $this->client->prepare( $query->raw,$query->param );