diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-21 12:42:41 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-21 12:42:41 +1000 |
| commit | 2c1f14d24b644e02f59758d04e1a029e2e73ed5a (patch) | |
| tree | bf039a4970d43b7a0b6fe377ead8419bc8da8ad1 | |
| parent | 64f7e70d29dc177f10106d4e6ac9f90725d95133 (diff) | |
Improvements to new mod panel
| -rw-r--r-- | inc/mod/pages.php | 2 | ||||
| -rw-r--r-- | templates/mod/dashboard.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index e40dc241..3754268d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -508,7 +508,7 @@ function mod_user($uid) { 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'] != '') { $query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id'); $query->bindValue(':id', $uid); diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 173c0e94..984aa03e 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -27,7 +27,7 @@ <fieldset> <legend>{% trans 'Noticeboard' %}</legend> <ul> - {% if noticeboard %} + {% if noticeboard|count > 0 %} <li> {% trans 'Latest posts:' %} <ul> |
