Skip to content

Commit

Permalink
Merge pull request #275 from dregad/i256-php-warning
Browse files Browse the repository at this point in the history
Fix PHP warning when user not logged in
  • Loading branch information
michitux authored Apr 30, 2024
2 parents 4f423b7 + c67a68d commit fbb9ff7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion action/rename.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public function handle_init() {
global $USERINFO;

$JSINFO['move_renameokay'] = $this->renameOkay($INFO['id']);
$JSINFO['move_allowrename'] = auth_isMember($this->getConf('allowrename'), $INPUT->server->str('REMOTE_USER'), (array) $USERINFO['grps']);
$JSINFO['move_allowrename'] = auth_isMember(
$this->getConf('allowrename'),
$INPUT->server->str('REMOTE_USER'),
$USERINFO['grps'] ?? []
);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions plugin.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base move
author Michael Hamann, Gary Owen, Arno Puschmann, Christoph Jähnigen
email [email protected]
date 2022-01-23
date 2024-04-26
name Move plugin
desc Move and rename pages and media files whilst maintaining the links.
url http://www.dokuwiki.org/plugin:move
url https://www.dokuwiki.org/plugin:move

0 comments on commit fbb9ff7

Please sign in to comment.