Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
IMC-GER committed Dec 15, 2023
1 parent 2485e68 commit 5735901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions imcger/activetopics/event/main_listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function set_template_vars($event)
$this->forum_id = $event['forum_id'];

$sql = 'SELECT imcger_display_active_position FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $this->forum_id;
WHERE forum_id = ' . (int) $this->forum_id;

$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);
Expand All @@ -101,7 +101,8 @@ public function set_template_vars_forum_name($event)
$links_forum = '';
$topic_forum_id = $topic_row['FORUM_ID'];

do {
do
{
$sql = 'SELECT forum_name, parent_id FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $topic_forum_id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(function($) { // Avoid conflicts with other libraries

'use strict';

// Move active topics to the top of forumlist
if ($('.forumbg dt#active_topics').length) {
$('.forabg').first().before($('.forumbg'));
Expand Down

0 comments on commit 5735901

Please sign in to comment.