aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Nikolov <ggeorgi60@gmail.com>2025-02-03 20:14:37 +0200
committerGeorgi Nikolov <ggeorgi60@gmail.com>2025-02-03 20:14:37 +0200
commite2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6 (patch)
tree2e0ebc14dd3dbf814051a1ce6995100068bef491
parentb0368ff5c93601473ff139d61adcd1e64cb6458f (diff)
downloadnowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.tar
nowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.tar.gz
nowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.zip
Added a way for the titles and favicons to be null
-rw-r--r--models/webpage.php2
1 files changed, 1 insertions, 1 deletions
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");
}