Skip to content

Commit

Permalink
Issue #65: fix: DB error - column numeric value check
Browse files Browse the repository at this point in the history
  • Loading branch information
petersistrom committed Feb 7, 2024
1 parent b1198ef commit 32f47d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/table/acknowledged_notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected function col_hlinkcount($row) {
*/
public function other_cols($column, $row) {
// Check if the column name is the id of a notice hyperlink.
if ($column > 0) {
if ($column > 0 && is_numeric($column)) {
// Only do link count on the first record of a user.
if ($this->previoususer == $row->userid) {
return '';
Expand Down

0 comments on commit 32f47d0

Please sign in to comment.