diff --git a/functions.php b/functions.php
index 05a6e9f..6334dfa 100644
--- a/functions.php
+++ b/functions.php
@@ -2022,9 +2022,10 @@ function show_eff_inf($u, $type)
if ($type == 1) {
$and = "AND `type` != 1022";
}
- $ef = mysql_query('SELECT * FROM `effects` WHERE `owner` = "' . $u . '" ' . $and . '');
+// $ef = mysql_query('SELECT * FROM `effects` WHERE `owner` = "' . $u . '" ' . $and . '');
+ $effs = db::c()->query('SELECT * FROM `effects` WHERE `owner` = ?i'.$and, $u)->fetch_assoc();
if ($type == 1) {
- while ($effs = mysql_fetch_array($ef)) {
+ while ($effs) {
if ($effs['type'] == 11 || $effs['type'] == 12 || $effs['type'] == 13 || $effs['type'] == 14) {
if ($effs['type'] == 11) {
$adds = 'Легкая ';
@@ -2051,7 +2052,7 @@ function show_eff_inf($u, $type)
$r .= '';
}
} else {
- while ($effs = mysql_fetch_array($ef)) {
+ while ($effs) {
if ($effs['type'] == 11 || $effs['type'] == 12 || $effs['type'] == 13 || $effs['type'] == 14) {
if ($effs['type'] == 11) {
$adds = 'Легкая ';
@@ -2533,7 +2534,6 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
$date3 = "" . $date2[2] . "-" . $date2[1] . "-" . $date2[0] . "";
$r .= 'Место рождения: ' . $user['borncity'] . '
';
$r .= 'День рождения персонажа: ' . $date3 . '
';
- $r .= $NastText;
$r .= '