From a3ec157b2cf5b46f2842c7b1d57c7afbcfa2c8f7 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 16 Feb 2018 03:53:33 +0200 Subject: [PATCH] code clean --- clan.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/clan.php b/clan.php index 19a22c2..71a4366 100644 --- a/clan.php +++ b/clan.php @@ -26,12 +26,8 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` = echo "

Список кланов

"; $query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC'); while ($clanrow = $query->fetch_assoc()) { - $a = $clanrow['align']; - $s = $clanrow['short']; - $n = $clanrow['name']; - echo " ",$n,"
"; $frm = " %s
"; - echo "wwow - ".sprintf($frm,$a,$s,$n,$n); + echo sprintf($frm,$clanrow['align'],$clanrow['short'],$clanrow['name'],$clanrow['name']); } } ?>