Куча мелких фиксов, уборка мусора.
This commit is contained in:
+10
-9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user