From: <var...@us...> - 2021-12-09 13:42:16
|
Revision: 10752 http://sourceforge.net/p/phpwiki/code/10752 Author: vargenau Date: 2021-12-09 13:42:14 +0000 (Thu, 09 Dec 2021) Log Message: ----------- WikiAdminChown plugin: avoid warning Modified Paths: -------------- trunk/lib/plugin/WikiAdminChown.php Modified: trunk/lib/plugin/WikiAdminChown.php =================================================================== --- trunk/lib/plugin/WikiAdminChown.php 2021-12-09 13:08:42 UTC (rev 10751) +++ trunk/lib/plugin/WikiAdminChown.php 2021-12-09 13:42:14 UTC (rev 10752) @@ -52,7 +52,7 @@ )); } - private function chownPages(&$dbi, &$request, $pages, $newowner) + private function chownPages($dbi, $request, $pages, $newowner) { $result = HTML::div(); $ul = HTML::ul(); @@ -127,6 +127,9 @@ $p = $request->getArg('p'); if (!$p) $p = $this->_list; $post_args = $request->getArg('admin_chown'); + if ($post_args === false) { + $post_args = array(); + } if (!$request->isPost() and empty($post_args['user'])) $post_args['user'] = $args['user']; $next_action = 'select'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |