From c03b0c7d0ec23d0fa7690a8de6c9eebc650d0d71 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 16 Oct 2006 14:26:24 +0000 Subject: Added error of ->{dbh} fails to connect git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@218 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 025c4fa2..5f7adb01 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -1296,7 +1296,7 @@ sub print_button { sub db_init { my ($self, $myconfig) = @_; - $self->{dbh} = $self->dbconnect_noauto($myconfig); + $self->{dbh} = $self->dbconnect_noauto($myconfig) || $self->dberror(); my $query = "SELECT t.extends, -- cgit v1.2.3