Permalink
Browse files

Removed the error control operator from "ocilogon" and "ociplogon" to…

… avoid "white screen" when the OCI8 extension is not enabled.
  • Loading branch information...
1 parent fc012b9 commit 0b1c3d6cab860b0af59fd64af3ecbc526927878b @mathop mathop committed with matheus.pedroso Feb 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/datasources/dbo/dbo_oracle.php
View
4 cake/libs/model/datasources/dbo/dbo_oracle.php
@@ -173,9 +173,9 @@ function connect() {
$config['charset'] = !empty($config['charset']) ? $config['charset'] : null;
if (!$config['persistent']) {
- $this->connection = @ocilogon($config['login'], $config['password'], $config['database'], $config['charset']);
+ $this->connection = ocilogon($config['login'], $config['password'], $config['database'], $config['charset']);
} else {
- $this->connection = @ociplogon($config['login'], $config['password'], $config['database'], $config['charset']);
+ $this->connection = ociplogon($config['login'], $config['password'], $config['database'], $config['charset']);
}
if ($this->connection) {

0 comments on commit 0b1c3d6

Please sign in to comment.