Куча мелких фиксов, уборка мусора.

This commit is contained in:
lopar
2020-09-30 01:39:06 +03:00
parent 640e85cf18
commit 5ac30becb7
149 changed files with 4221 additions and 11012 deletions
+10 -9
View File
@@ -38,21 +38,22 @@ if (isset($_GET['quid'])) {
$questList = '';
$sp = db::c()->query('SELECT * FROM `quests` WHERE `delete` = 0 ORDER BY `id` DESC');
while ($pl = $sp->fetch_assoc()) $questList .= $q->list_quest($pl, $user['id']);
while ($pl = $sp->fetch_assoc()) {
$questList .= $q->list_quest($pl, $user['id']);
}
if (empty($questList)) $questList = 'Нет заданий.';
if (empty($questList)) {
$questList = 'Нет заданий.';
}
function info_quest($id)
{
$sp = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "' . $id . '" LIMIT 1'));
if (isset($sp['id'])) {
return $sp;
} else {
return null;
}
return mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "' . $id . '" LIMIT 1'));
}
if (!empty($q->error)) $status = $q->error;
if (!empty($q->error)) {
$status = $q->error;
}
?>
<html>
<head>