Skip to content

Commit

Permalink
Fixed E_NOTICE error
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Jan 12, 2022
1 parent 97cafe7 commit 2523cda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/lib-topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,9 @@ function TOPIC_hasMultiTopicAccess($type, $id = '', $tid = '', $sub_type = '')
$result = DB_query($sql);
$A = DB_fetchArray($result);
$nrows = DB_numRows($result);
$tid = $A['tid'];
if ($nrows > 0) {
$tid = $A['tid'];
}
} else {
if (is_array($tid)) {
$nrows = count($tid);
Expand Down

0 comments on commit 2523cda

Please sign in to comment.