Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/racktables: fix warnings with PHP 8.0
- Loading branch information
Dirk Meyer
authored and
Dirk Meyer
committed
Jun 26, 2022
1 parent
244ec6f
commit 4c01200
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- wwwroot/inc/database.php.orig 2022-02-15 23:54:10 UTC | ||
+++ wwwroot/inc/database.php | ||
@@ -4853,7 +4853,7 @@ function commitAddFile ($name, $type, $contents, $comm | ||
} | ||
} | ||
|
||
-function commitReplaceFile ($file_id = 0, $contents) | ||
+function commitReplaceFile ($file_id, $contents) | ||
{ | ||
global $dbxlink; | ||
$query = $dbxlink->prepare('UPDATE File SET mtime = NOW(), contents = ?, size = LENGTH(contents), thumbnail = NULL WHERE id = ?'); | ||
@@ -5565,7 +5565,7 @@ function makeVlanListWhere ($db_field_name, $vlan_list | ||
return $ret; | ||
} | ||
|
||
-function upd8021QPort ($instance = 'desired', $object_id, $port_name, $port, $before) | ||
+function upd8021QPort ($instance, $object_id, $port_name, $port, $before) | ||
{ | ||
global $tablemap_8021q; | ||
if (!array_key_exists ($instance, $tablemap_8021q)) | ||
@@ -5638,7 +5638,7 @@ function upd8021QPort ($instance = 'desired', $object_ | ||
return $changed ? 1 : 0; | ||
} | ||
|
||
-function replace8021QPorts ($instance = 'desired', $object_id, $before, $changes) | ||
+function replace8021QPorts ($instance, $object_id, $before, $changes) | ||
{ | ||
$done = 0; | ||
foreach ($changes as $pn => $port) |