Avoid some PHP warnings, no functional changes

This commit is contained in:
Michael 2017-08-03 05:50:44 +00:00
commit 1bd85971a4
5 changed files with 14 additions and 10 deletions

View file

@ -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();
}