diff --git a/system/acp/sections/tarifs/copy.php b/system/acp/sections/tarifs/copy.php index 00f2f9c..d242fe4 100644 --- a/system/acp/sections/tarifs/copy.php +++ b/system/acp/sections/tarifs/copy.php @@ -33,7 +33,7 @@ if ($tarif['game'] == 'cssold') { foreach ($aPrice as $price) $sprice .= $price . ':'; - $sprice = isset($sprice{0}) ? substr($sprice, 0, -1) : ''; + $sprice = isset($sprice[0]) ? substr($sprice, 0, -1) : ''; $tarif['price'] = $sprice; } @@ -63,7 +63,7 @@ $aPacks = sys::b64djs($tarif['packs']); foreach ($aPacks as $name => $fullname) $packs .= '"' . $name . '":"' . $fullname . '",'; -$packs = isset($packs{0}) ? substr($packs, 0, -1) : ''; +$packs = isset($packs[0]) ? substr($packs, 0, -1) : ''; $html->set('packs', $packs); @@ -74,7 +74,7 @@ $aPlugins = sys::b64djs($tarif['plugins_install']); foreach ($aPlugins as $pack => $list) $plugins .= '"' . $pack . '":"' . $list . '",'; -$plugins = isset($plugins{0}) ? substr($plugins, 0, -1) : ''; +$plugins = isset($plugins[0]) ? substr($plugins, 0, -1) : ''; $html->set('plugins_install', $plugins); diff --git a/system/acp/sections/tarifs/search.php b/system/acp/sections/tarifs/search.php index 550cb98..a96d9e7 100644 --- a/system/acp/sections/tarifs/search.php +++ b/system/acp/sections/tarifs/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -27,7 +27,7 @@ if (substr($text, 0, 5) == 'game=') { if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) $tarifs = $sql->query('SELECT `id`, `unit`, `game`, `name`, `slots_min`, `slots_max`, `port_min`, `port_max` FROM `tarifs` WHERE `game`="' . $game . '" ORDER BY `id` ASC'); -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $tarifs = $sql->query('SELECT `id`, `unit`, `game`, `name`, `slots_min`, `slots_max`, `port_min`, `port_max` FROM `tarifs` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR'