mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Fix PHP 7.0 warning (#4514)
Regression from https://github.com/FreshRSS/FreshRSS/pull/4202 > Warning: Declaration of FreshRSS_EntryDAOSQLite::markRead($ids, $is_read = true) should be compatible with FreshRSS_EntryDAO::markRead($ids, bool $is_read = true) in /var/www/FreshRSS/app/Models/EntryDAOSQLite.php on line 3
This commit is contained in:
committed by
GitHub
parent
0ec65788f9
commit
0ec3874620
@@ -115,7 +115,7 @@ DROP TABLE IF EXISTS `tmp`;
|
||||
* @param boolean $is_read
|
||||
* @return integer|false affected rows
|
||||
*/
|
||||
public function markRead($ids, $is_read = true) {
|
||||
public function markRead($ids, bool $is_read = true) {
|
||||
FreshRSS_UserDAO::touch();
|
||||
if (is_array($ids)) { //Many IDs at once (used by API)
|
||||
//if (true) { //Speed heuristics //TODO: Not implemented yet for SQLite (so always call IDs one by one)
|
||||
|
||||
Reference in New Issue
Block a user