diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 0aeafa1f4..efe0a595f 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -104,7 +104,7 @@ {% else %}

 				{% endif %}
 				
-				{% if v.admin_level >= 2 %}
+				{% if v and v.admin_level >= 2 %}
 					
Upvoters | Downvoters | Upvoted | Downvoted
{% endif %} @@ -167,7 +167,7 @@ Get them help - {% if v.admin_level > 2 %} + {% if v and v.admin_level > 2 %} Make admin Remove admin @@ -255,7 +255,7 @@

 						
-						{% if v.admin_level > 2 %}
+						{% if v and v.admin_level > 2 %}
 							Verify
 							Unverify
 						{% endif %}
@@ -365,7 +365,7 @@
 					

 				{% endif %}
 
-				{% if v.admin_level >= 2 %}
+				{% if v and v.admin_level >= 2 %}
 					
Upvoters | Downvoters | Upvoted | Downvoted
{% endif %} @@ -442,7 +442,7 @@ Message Get them help - {% if v.admin_level > 2 %} + {% if v and v.admin_level > 2 %} Make admin Remove admin @@ -471,7 +471,7 @@
- {% if v.admin_level > 1 %} + {% if v and v.admin_level > 1 %} @@ -528,7 +528,7 @@

 
-						{% if v.admin_level > 2 %}
+						{% if v and v.admin_level > 2 %}
 							Verify
 							Unverify
 						{% endif %}