Skip to content

Commit 7196fb9

Browse files
committed
Add default values to fix some php 8 warnings
Signed-off-by: Bugo <[email protected]>
1 parent 1191119 commit 7196fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repair_settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ function smf_db_replacement__callback($matches)
13131313
// Because this is just compat mode, this is good enough.
13141314
if (!function_exists('smf_db_query'))
13151315
{
1316-
function smf_db_query($execute = true, $db_string, $db_values)
1316+
function smf_db_query($execute = true, $db_string = '', $db_values = [])
13171317
{
13181318
global $db_callback, $db_connection, $mysqli_found;
13191319

@@ -1343,7 +1343,7 @@ function smf_db_query($execute = true, $db_string, $db_values)
13431343
// Insert some data...
13441344
if (!function_exists('smf_db_insert'))
13451345
{
1346-
function smf_db_insert($method = 'replace', $table, $columns, $data, $keys, $disable_trans = false)
1346+
function smf_db_insert($method = 'replace', $table = '', $columns = [], $data = [], $keys = [], $disable_trans = false)
13471347
{
13481348
global $smcFunc, $db_connection, $db_prefix;
13491349

0 commit comments

Comments
 (0)