Fix doc update-by-ID problem
- Rework imports for pages - Ready for final end-to-end test before merge
This commit is contained in:
@@ -269,9 +269,7 @@ class Feed
|
||||
*/
|
||||
public static function retrieveById(int $feedId): static|false
|
||||
{
|
||||
define('PDO_DOC_DEBUG_SQL', true);
|
||||
$doc = Find::byId(Table::FEED, $feedId, static::class);
|
||||
echo "Feed $feedId: " . ($doc ? 'found it' : 'not found');
|
||||
return $doc && $doc->user_id == $_SESSION[Key::USER_ID] ? $doc : false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user