Fix misspelling of PDOException in newsportal.php.

This commit is contained in:
Retro_Guy 2023-07-13 10:20:58 -07:00
parent 0dfe8d162e
commit 0ca7c4bbb9
1 changed files with 3 additions and 3 deletions

View File

@ -1426,7 +1426,7 @@ function get_search_snippet($body, $content_type='') {
function mail_db_open($database, $table='messages') {
try {
$dbh = new PDO('sqlite:'.$database);
} catch (PDOExeption $e) {
} catch (PDOException $e) {
echo 'Connection failed: '.$e->getMessage();
exit;
}
@ -1449,7 +1449,7 @@ function mail_db_open($database, $table='messages') {
function rslight_db_open($database, $table='overview') {
try {
$dbh = new PDO('sqlite:'.$database);
} catch (PDOExeption $e) {
} catch (PDOException $e) {
echo 'Connection failed: '.$e->getMessage();
exit;
}
@ -1478,7 +1478,7 @@ function rslight_db_open($database, $table='overview') {
function article_db_open($database) {
try {
$dbh = new PDO('sqlite:'.$database);
} catch (PDOExeption $e) {
} catch (PDOException $e) {
echo 'Connection failed: '.$e->getMessage();
exit;
}