Avoid some PHP warnings, no functional changes
This commit is contained in:
parent
8a93725d77
commit
1bd85971a4
5 changed files with 14 additions and 10 deletions
|
@ -929,8 +929,8 @@ function zrl($s, $force = false) {
|
|||
* is set to true
|
||||
*/
|
||||
function get_theme_uid() {
|
||||
$uid = (($_REQUEST['puid']) ? intval($_REQUEST['puid']) : 0);
|
||||
if ((local_user()) && ((get_pconfig(local_user(),'system','always_my_theme')) || (! $uid))) {
|
||||
$uid = ((!empty($_REQUEST['puid'])) ? intval($_REQUEST['puid']) : 0);
|
||||
if ((local_user()) && ((get_pconfig(local_user(), 'system', 'always_my_theme')) || (! $uid))) {
|
||||
return local_user();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue