Miscellaneous static analysis improvements for php 7.1 (#620)

* Miscellaneous static analysis improvements for php 7.1

* Update changes.txt
This commit is contained in:
Yury Pikhtarev 2023-03-17 22:02:00 +07:00 committed by GitHub
commit 7019d31353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 156 additions and 151 deletions

View file

@ -419,6 +419,7 @@ function delta_time($timestamp_1, $timestamp_2 = TIMENOW, $granularity = 'auto')
function get_select($select, $selected = null, $return_as = 'html', $first_opt = '»» Выбрать ')
{
$select_name = null;
$select_ary = array();
switch ($select) {
@ -921,6 +922,7 @@ function bb_update_config($params, $table = BB_CONFIG)
function get_db_stat($mode)
{
$sql = null;
switch ($mode) {
case 'usercount':
$sql = "SELECT COUNT(user_id) AS total FROM " . BB_USERS;
@ -1480,7 +1482,7 @@ function get_forum_display_sort_option($selected_row = 0, $action = 'list', $lis
// get the good list
$list_name = 'forum_display_' . $list;
$listrow = $$list_name;
$listrow = ${$list_name};
// init the result
$res = '';