Empty commit

This commit is contained in:
Git 2013-10-20 08:00:53 +00:00
parent a8f3922ffb
commit fbb35377a2
3 changed files with 27 additions and 18 deletions

View File

@ -43,14 +43,16 @@ private static function get_selected_link($String, $Selected) {
}
public static function render_artist_tile($Artist, $Category) {
switch ($Category) {
if (self::is_valid_artist($Artist)) {
switch ($Category) {
case 'weekly':
case 'hyped':
self::render_tile("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
case 'weekly':
case 'hyped':
self::render_tile("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
}
}
}
@ -69,14 +71,16 @@ private static function render_tile($Url, $Name, $Image) {
public static function render_artist_list($Artist, $Category) {
switch ($Category) {
case 'weekly':
case 'hyped':
self::render_list("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
if (self::is_valid_artist($Artist)) {
switch ($Category) {
case 'weekly':
case 'hyped':
self::render_list("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
}
}
}
@ -94,4 +98,8 @@ private static function render_list($Url, $Name, $Image) {
}
}
private static function is_valid_artist($Artist) {
return $Artist['name'] != '[unknown]';
}
}

View File

@ -59,9 +59,10 @@
if ($Attempts > 0) {
?>
<br /><br />
Lost your password? <a href="login.php?act=recover">Recover it here!</a>
Lost your password? <a href="login.php?act=recover" title="Recover your password">Recover it here!</a>
<?
} ?>
}
?>
<script type="text/javascript" src="static/functions/detect_mobile.js"></script>
<script type="text/javascript">
cookie.set('cookie_test', 1, 1);

View File

@ -12,7 +12,7 @@
G::$DB->query("SELECT UserID, Answer, Date FROM staff_answers WHERE QuestionID = '$ID' $UserIDSQL ORDER BY DATE DESC");
$Answers = G::$DB->to_array(MYSQLI_ASSOC);
$Answers = G::$DB->to_array(false, MYSQLI_ASSOC);
foreach($Answers as $Answer) { ?>
<div class="box box2">
<div class="head">