From 5180206248e8cfbe700d214f2a30056e5afa3b2b Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 21 Jun 2019 20:42:46 +0300 Subject: [PATCH] missing return statements fix --- zayavka.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zayavka.php b/zayavka.php index 974cc6d..8d83726 100644 --- a/zayavka.php +++ b/zayavka.php @@ -179,7 +179,7 @@ class zayavka $z[$zay]['team' . $team][] = ''; if (mysql_query("UPDATE `users`, `zayavka` SET `users`.`zayavka` = {$zay}, `zayavka`.`team{$team}` = '" . implode(";", $z[$zay]['team' . $team]) . "" . $id . ";' WHERE `users`.`id` = {$id} AND `users`.`zayavka` = 0 AND `zayavka`.`id` = {$zay}")) { return "Вы приняли заявку на бой."; - } + } else return 'addteam(): database error!'; } function delteam($team = 2, $id, $zay, $r) @@ -197,7 +197,7 @@ class zayavka if (mysql_query("UPDATE `users`, `zayavka` SET `users`.`zayavka` = '0', `zayavka`.`team{$team}` = '{$teams}' WHERE `users`.`id` = {$id} AND `zayavka`.`id` = {$zay};")) { return "Вы отозвали запрос"; - } + } else return 'delteam(): database error!'; } function addzayavka($start, $timeout, $t1c, $t2c, $type, $t1min, $t2min, $t1max, $t2max, $coment, $creator, $level, $stavka, $blood = 0) @@ -278,7 +278,7 @@ class zayavka } } return 'Вы отозвали заявку.'; - } + } else return 'delzayavka(): database error!'; } function showfiz($row) @@ -667,7 +667,6 @@ if ($_POST['open']) { location.href = 'zayavka.php?level=&tklogs=&logs='; - timerID = setTimeout("refreshPeriodic()", 30000); } timerID = setTimeout("refreshPeriodic()", 30000);