Website Summary Files Commits Branches @commit @diff @stats
path: root / models
diff options
context:
space:
mode:
Commite2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6 (patch)
Author
 Georgi Nikolov <ggeorgi60@gmail.com>
2025-02-03 20:14:37 +0200
Committer
 Georgi Nikolov <ggeorgi60@gmail.com>
2025-02-03 20:14:37 +0200
Files2e0ebc14dd3dbf814051a1ce6995100068bef491 /models
nowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.tar
nowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.tar.gz
nowayforward_human-e2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6.zip
Parentb0368ff5c93601473ff139d61adcd1e64cb6458f (diff)
Added a way for the titles and favicons to be null
1 files changed, 1 insertions, 1 deletions
-rw-r--r--models/webpage.php2
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");
}