summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-16 14:26:24 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-16 14:26:24 +0000
commitc03b0c7d0ec23d0fa7690a8de6c9eebc650d0d71 (patch)
treea93b8f053edfae186b4d203a509a6d29304e5bf3 /LedgerSMB
parente9a705c8a19f25509c04895c279ba089c20631eb (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
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,