mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
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:
parent
4e8e181d8c
commit
7019d31353
37 changed files with 156 additions and 151 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue