Skip to content

Commit 562ed32

Browse files
author
mcramer
committed
Bugfix: Old connection method used, changed to use correct db class connection check
1 parent d65eaaf commit 562ed32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/tools/dns_import_tupa.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function addot($text) {
8282
}
8383

8484
//* Connect to DB
85-
if($exdb->connect()) {
85+
if($exdb !== false) {
8686
$domains = $exdb->queryAllRecords("SELECT * FROM domains WHERE type = 'MASTER'");
8787
if(is_array($domains)) {
8888
foreach($domains as $domain) {

0 commit comments

Comments
 (0)