Skip to content

Commit

Permalink
fixup! Qual: Fix phan notices (install)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Feb 3, 2025
1 parent 79fe3e0 commit 2121639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/install/fileconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class="minwidth300"
}

$testclass = '';
$testfunction = '';
$testfunction = null;
// Show line into list
if ($type == 'mysql') {
$testfunction = 'mysql_connect';
Expand Down
3 changes: 2 additions & 1 deletion htdocs/install/step1.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@

// Check database connection

$db = null;
if ($databasefortest === null) {
print '<div class="error">Database name can not be empty</div>';
$error++;
Expand All @@ -580,7 +581,7 @@
}
}

if (!$error) {
if (!$error && $db !== null) {
if ($db->connected) {
$resultbis = 1;

Expand Down

0 comments on commit 2121639

Please sign in to comment.