[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] shorturl: Prevent undefined index error when tiki-setup.php is included...
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69ca8e8e91d2c_3b18f04c45cc@gitlab-sidekiq-low-urgency-cpu-bound-v2-776c887fd4-msmm6.mail> |
Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
3f400407 by jonnybradley at 2026-03-30T15:53:58+01:00
[FIX] shorturl: Prevent undefined index error when tiki-setup.php is included from `tiki_route_attempt_custom_route_redirect()`
- - - - -
1 changed file:
- lib/setup/user_prefs.php
Changes:
=====================================
lib/setup/user_prefs.php
=====================================
@@ -61,7 +61,7 @@ if ($user) {
}
// Prefs overriding
- $prefs = array_merge($prefs, $user_preferences[$user]);
+ $prefs = array_merge($prefs, $user_preferences[$user] ?? []);
// Set the userPage name for this user since other scripts use this value.
$userPage = $prefs['feature_wiki_userpage_prefix'] . $user;
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3f4004075e05ba85195515847546e059898a6cf9
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3f4004075e05ba85195515847546e059898a6cf9
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs