From e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6 Mon Sep 17 00:00:00 2001 From: Georgi Nikolov Date: Mon, 3 Feb 2025 20:14:37 +0200 Subject: Added a way for the titles and favicons to be null --- models/webpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/webpage.php') diff --git a/models/webpage.php b/models/webpage.php index 2bcc265..90ffb45 100644 --- a/models/webpage.php +++ b/models/webpage.php @@ -40,7 +40,7 @@ class Webpage extends Table { return Table::_get_entries_count("Webpages"); } - static function updateNewArchive(int $WID, string $faviconPath, string $newTitle) : void { + static function updateNewArchive(int $WID, ?string $faviconPath, ?string $newTitle) : void { Table::_update("Webpages", "FaviconPath = \"$faviconPath\", Title = \"$newTitle\"", "WID = $WID"); } -- cgit v1.2.3