Looks like most of the time `$value[4]` is undefined at https://github.com/qky666/dokuwiki-plugin-odtplus2dw/blob/master/action.php#L476
Maybe something like https://www.php.net/manual/en/function.array-key-exists.php should be added?
Like `if (array_key_exists(4, $value)) {$other = $value[4];} else {$other='';}`
Hello again, @qky666 Thanks for quick fix at #8 !
I've found one more problem and fix for it:
https://github.com/qky666/dokuwiki-plugin-odtplus2dw/blob/master/action.php#L428-L458:
$ID
is missing in this part. Only superusers can upload images due to this. Simple addition, $ID
toglobal $INFO;
at https://github.com/qky666/dokuwiki-plugin-odtplus2dw/blob/master/action.php#L433 fixes this problem.We've added debug messages and tested:
msg( 'odtplus2dw_TEST: auth_check:'.auth_quickaclcheck($ID).' id:'.serialize($ID).' upload:'.AUTH_UPLOAD);
Before:
odtplus2dw_TEST: auth_check:0 id: upload:8
After:
odtplus2dw_TEST: auth_check:16 id:s:16:"playground:test3"; upload:8
And one more little problem: