Browse Source

Improvements to new mod panel

pull/40/head
Michael Save 12 years ago
parent
commit
2c1f14d24b
  1. 2
      inc/mod/pages.php
  2. 2
      templates/mod/dashboard.html

2
inc/mod/pages.php

@ -508,7 +508,7 @@ function mod_user($uid) {
return; return;
} }
if (hasPermission($config['dmod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) { if (hasPermission($config['mod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) {
if ($_POST['password'] != '') { if ($_POST['password'] != '') {
$query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id'); $query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id');
$query->bindValue(':id', $uid); $query->bindValue(':id', $uid);

2
templates/mod/dashboard.html

@ -27,7 +27,7 @@
<fieldset> <fieldset>
<legend>{% trans 'Noticeboard' %}</legend> <legend>{% trans 'Noticeboard' %}</legend>
<ul> <ul>
{% if noticeboard %} {% if noticeboard|count > 0 %}
<li> <li>
{% trans 'Latest posts:' %} {% trans 'Latest posts:' %}
<ul> <ul>

Loading…
Cancel
Save