Skip to content

Commit 6c80c09

Browse files
committed
fix string instead of int
mambax7#12
1 parent 86eb95e commit 6c80c09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

class/TagHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ public function getItemCount(int $tag_id, int $modid = 0, int $catid = 0): int
472472
$sql = $sql_select . ' ' . $sql_from . ' ' . $sql_where;
473473
$result = $this->db->query($sql);
474474
if ($result instanceof \mysqli_result) {
475-
[$ret] = $this->db->fetchRow($result);
475+
[$temp] = $this->db->fetchRow($result);
476+
$ret = (int)$temp[0];
476477
} else {
477478
\trigger_error($this->db->error());
478479
$ret = 0;

0 commit comments

Comments
 (0)