Skip to content

Commit 06d988c

Browse files
committed
Orange Summer III
1 parent fd3f7f1 commit 06d988c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Db.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ function connect($alias = null)
7171
);
7272

7373
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
74+
} catch (PDOException $e) {
75+
trigger_error('Data base not connected!');
7476
}
75-
} catch (PDOException $e) {
76-
trigger_error('Data base not connected!');
7777
}
7878
if (!is_object($this->conn)) {
7979
trigger_error('I can not connect to the database', E_USER_ERROR);

0 commit comments

Comments
 (0)