diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php
index 7b50157a..283d0511 100644
--- a/themes/danbooru/layout.class.php
+++ b/themes/danbooru/layout.class.php
@@ -142,8 +142,8 @@ class Layout {
case "upload":
$custom_sublinks .= "
All";
$custom_sublinks .= "My Favorites";
- if(file_exists("ext/random_image")) $custom_sublinks .= "Random Image";
- if($hw){ $custom_sublinks .= "Help";
+ if(file_exists("ext/random_image")) $custom_sublinks .= "Random Image";
+ if($hw){ $custom_sublinks .= "Help";
}else{ $custom_sublinks .= "Help";}
break;
case "comment":