admin web: fix small bugs in manage_user.php

This commit is contained in:
David Anderson 2014-02-21 12:05:39 -08:00
parent 826f67106a
commit 603bca7b0b
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ require_once("../inc/util_ops.inc");
require_once("../inc/profile.inc");
require_once("../project/project.inc");
get_logged_in_user();
db_init();
$is_admin = true;
@ -173,7 +174,7 @@ if (isset($_POST['suspend_submit']) && !empty($user) && $is_admin) {
);
} else {
if (is_numeric($dt)) {
$t = time()+$dt;
$t = $dt>0 ? time()+$dt : 0;
$q = "UPDATE forum_preferences SET banished_until=$t WHERE userid=$id";
mysql_query($q);