Type casting can be used

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 15:23:40 +03:00
commit b08f6e898b
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
7 changed files with 14 additions and 14 deletions

View file

@ -384,7 +384,7 @@ if ($tor_reged && $tor_info) {
define('SEEDER_EXIST', true);
$seed_order_action = "viewtopic.php?" . POST_TOPIC_URL . "=$bt_topic_id&amp;spmode=full#seeders";
$template->assign_block_vars("$x_full", array(
$template->assign_block_vars((string)$x_full, array(
'SEED_ORD_ACT' => $seed_order_action,
'SEEDERS_UP_TOT' => humn_size($sp_up_tot[$x], 0, 'KB') . '/s'
));
@ -406,7 +406,7 @@ if ($tor_reged && $tor_info) {
define('LEECHER_EXIST', true);
$leech_order_action = "viewtopic.php?" . POST_TOPIC_URL . "=$bt_topic_id&amp;spmode=full#leechers";
$template->assign_block_vars("$x_full", array(
$template->assign_block_vars((string)$x_full, array(
'LEECH_ORD_ACT' => $leech_order_action,
'LEECHERS_UP_TOT' => humn_size($sp_up_tot[$x], 0, 'KB') . '/s',
'LEECHERS_DOWN_TOT' => humn_size($sp_down_tot[$x], 0, 'KB') . '/s'

View file

@ -200,7 +200,7 @@ function strip_quotes($text)
do {
$pos = strpos($lowertext, '[quote', $curpos);
if ($pos !== false) {
$start_pos["$pos"] = 'start';
$start_pos[(string)$pos] = 'start';
$curpos = $pos + 6;
}
} while ($pos !== false);
@ -215,7 +215,7 @@ function strip_quotes($text)
do {
$pos = strpos($lowertext, '[/quote', $curpos);
if ($pos !== false) {
$end_pos["$pos"] = 'end';
$end_pos[(string)$pos] = 'end';
$curpos = $pos + 8;
}
} while ($pos !== false);
@ -259,7 +259,7 @@ function strip_quotes($text)
// recursion.
if ($stack) {
foreach ($stack as $pos) {
unset($pos_list["$pos"]);
unset($pos_list[(string)$pos]);
}
}
} while ($stack);