Skip to content

Commit

Permalink
Fix phpBB3 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sama34 committed Sep 3, 2024
1 parent e5060c9 commit aea42b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion boards/phpbb3/threads.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function get_poll_pid($tid)
$results = $this->old_db->fetch_field($query, "poll_option_id");
$this->old_db->free_result($query);

$this->get_poll_pid_cache[$tid] = $results;
$this->get_poll_pid_cache[$tid] = (int)$results;

return $results;
}
Expand Down
4 changes: 2 additions & 2 deletions boards/phpbb3/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function convert_data($data)
$insert_data['regdate'] = $data['user_regdate'];
$insert_data['lastactive'] = $data['user_lastvisit'];
$insert_data['lastvisit'] = $data['user_lastvisit'];
$insert_data['website'] = $data['user_website'];
$insert_data['website'] = $data['user_website'] ?? '';
$insert_data['lastpost'] = $data['user_lastpost_time'];

$birthday = '';
Expand Down Expand Up @@ -125,7 +125,7 @@ function convert_data($data)
// phpBB 3.1
$insert_data['timezone'] = get_timezone($data['user_timezone']);
}
$insert_data['dst'] = $data['user_dst'];
$insert_data['dst'] = $data['user_dst'] ?? 0;
$insert_data['signature'] = encode_to_utf8($this->bbcode_parser->convert($data['user_sig'], $data['user_sig_bbcode_uid']), "users", "users");
$insert_data['regip'] = my_inet_pton($data['user_ip']);
$insert_data['lastip'] = my_inet_pton($data['user_ip']);
Expand Down
4 changes: 2 additions & 2 deletions resources/class_converter_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ public function prepare_insert_array($values, $table='')
{
$this->board->set_column_warning_in_progress(
'entry', $table, $key,
$lang->sprintf($lang->warning_prepare_data_mismatched_column, $import_session['module'], TABLE_PREFIX.$table, $key, $column['def_type'], 'STRING'),
$lang->sprintf($lang->warning_prepare_data_mismatched_column, $import_session['module'], TABLE_PREFIX.$table, $key, $column['def_type'], 'STRING')
$lang->sprintf($lang->warning_prepare_data_mismatched_column, $import_session['module'], TABLE_PREFIX.$table, $key, $column['def_type'] ?? '', 'STRING'),
$lang->sprintf($lang->warning_prepare_data_mismatched_column, $import_session['module'], TABLE_PREFIX.$table, $key, $column['def_type'] ?? '', 'STRING')
);
}

Expand Down

0 comments on commit aea42b5

Please sign in to comment.