[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <69cab152b4cd8_3b18f27c-36d@gitlab-sidekiq-low-urgency-cpu-bound-v2-8577bbf8bd-f7gjx.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
cf4db734 by jonnybradley at 2026-03-30T18:22:22+01:00
[FIX] shorturl: Prevent undefined index error when tiki-setup.php is included from `tiki_route_attempt_custom_route_redirect()`

(cherry picked from commit 3f4004075e05ba85195515847546e059898a6cf9)

- - - - -


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/cf4db7342f850890164585c43c90be8b1f43919d

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cf4db7342f850890164585c43c90be8b1f43919d
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.