Add feedback / revert fix for $item['post-type']
This commit is contained in:
parent
462f76352e
commit
6893e2c3f7
|
@ -1465,8 +1465,7 @@ class Database
|
|||
$this->logger->notice('Invalid count.', ['table' => $table, 'expression' => $expression, 'condition' => $condition_string, 'callstack' => System::callstack()]);
|
||||
return 0;
|
||||
} else {
|
||||
// Ensure to always return either a "null" or a numeric value
|
||||
return is_numeric($row['count']) ? (int)$row['count'] : $row['count'];
|
||||
return (int)$row['count'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2259,7 +2259,7 @@ class Item
|
|||
$condition[0] .= " AND `received` < UTC_TIMESTAMP() - INTERVAL ? DAY";
|
||||
$condition[] = $days;
|
||||
|
||||
$items = Post::select(['resource-id', 'starred', 'id', 'post-type', 'uid', 'uri-id', 'post-type'], $condition);
|
||||
$items = Post::select(['resource-id', 'starred', 'id', 'post-type', 'uid', 'uri-id'], $condition);
|
||||
|
||||
if (!DBA::isResult($items)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue