Ёбанный вечный цикл!!!

This commit is contained in:
lopar
2018-02-16 01:43:18 +02:00
parent 9c75b04205
commit b2e77826f5
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -44,9 +44,9 @@ if (!$error) {
$ip = $_SERVER['REMOTE_ADDR'];
db::c()->query('INSERT INTO `iplog` (`owner`, `ip`, `date`) VALUES (?i, "?s", ?i)', $data['id'], $ip, time());
$rs = db::c()->query('SELECT * FROM `telegraph` WHERE `owner` = ?i', $data['id'])->fetch_assoc();
while ($rs) {
addchp($rs['text'], '{[]}' . $data['login'] . '{[]}');
$rs = db::c()->query('SELECT * FROM `telegraph` WHERE `owner` = ?i', $data['id']);
while ($res = $rs->fetch_assoc()) {
addchp($res['text'], '{[]}' . $data['login'] . '{[]}');
}
db::c()->query('DELETE FROM `telegraph` WHERE `owner` = ?i', $data['id']);
header("Location: fight.php");