You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest dokuwiki-plugin-approve and Dokuwiki 2024-02-06b, I get these warnings in the apache error log when viewing the revision history of uploaded media in media manager:
PHP Warning: Undefined array key "id" in /www/dokuwiki/live/dokuwiki-2024-02-06b/lib/plugins/approve/action/revisions.php on line 23,
This refers to the following test in revisions.php:
if (!$acl->useApproveHere($INFO['id'])) return;
Directly above this line I have added the following:
if (array_key_exists("id", $INFO) == False) {
return;
}
This seems to fix the issue when objects don't have an 'id' key. Advice from other users whether this is an appropriate fix is welcome.
The text was updated successfully, but these errors were encountered:
With the latest dokuwiki-plugin-approve and Dokuwiki 2024-02-06b, I get these warnings in the apache error log when viewing the revision history of uploaded media in media manager:
PHP Warning: Undefined array key "id" in /www/dokuwiki/live/dokuwiki-2024-02-06b/lib/plugins/approve/action/revisions.php on line 23,
This refers to the following test in revisions.php:
if (!$acl->useApproveHere($INFO['id'])) return;
Directly above this line I have added the following:
This seems to fix the issue when objects don't have an 'id' key. Advice from other users whether this is an appropriate fix is welcome.
The text was updated successfully, but these errors were encountered: