forked from GithubBackups/vichan
Fix leading whitespace in post.php
This commit is contained in:
parent
f45bc768fe
commit
15cce3a31f
8
post.php
8
post.php
@ -332,7 +332,6 @@ if (isset($_POST['delete'])) {
|
|||||||
$post = $query->fetch(PDO::FETCH_ASSOC);
|
$post = $query->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
$error = event('report', array('ip' => $_SERVER['REMOTE_ADDR'], 'board' => $board['uri'], 'post' => $post, 'reason' => $reason, 'link' => link_for($post)));
|
$error = event('report', array('ip' => $_SERVER['REMOTE_ADDR'], 'board' => $board['uri'], 'post' => $post, 'reason' => $reason, 'link' => link_for($post)));
|
||||||
|
|
||||||
if ($error) {
|
if ($error) {
|
||||||
error($error);
|
error($error);
|
||||||
}
|
}
|
||||||
@ -795,13 +794,12 @@ if (isset($_POST['delete'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['user_flag'] && isset($_POST['user_flag']))
|
if ($config['user_flag'] && isset($_POST['user_flag']) && !empty($_POST['user_flag'])) {
|
||||||
if (!empty($_POST['user_flag']) ){
|
|
||||||
|
|
||||||
$user_flag = $_POST['user_flag'];
|
$user_flag = $_POST['user_flag'];
|
||||||
|
|
||||||
if (!isset($config['user_flags'][$user_flag]))
|
if (!isset($config['user_flags'][$user_flag])) {
|
||||||
error(_('Invalid flag selection!'));
|
error(_('Invalid flag selection!'));
|
||||||
|
}
|
||||||
|
|
||||||
$flag_alt = isset($user_flag_alt) ? $user_flag_alt : $config['user_flags'][$user_flag];
|
$flag_alt = isset($user_flag_alt) ? $user_flag_alt : $config['user_flags'][$user_flag];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user