forked from GithubBackups/vichan
Merge pull request #912 from Zankaria/notes-fix
pages.php: fix wrong variable
This commit is contained in:
commit
49c69f4113
@ -986,9 +986,7 @@ function mod_ip(Context $ctx, $cip) {
|
|||||||
|
|
||||||
if (hasPermission($config['mod']['view_notes'])) {
|
if (hasPermission($config['mod']['view_notes'])) {
|
||||||
$note_queries = $ctx->get(IpNoteQueries::class);
|
$note_queries = $ctx->get(IpNoteQueries::class);
|
||||||
$note_queries->getByIp($ip);
|
$args['notes'] = $note_queries->getByIp($ip);
|
||||||
|
|
||||||
$args['notes'] = $query->fetchAll(PDO::FETCH_ASSOC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasPermission($config['mod']['modlog_ip'])) {
|
if (hasPermission($config['mod']['modlog_ip'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user