signatur/signatur.php aktualisiert
PHP message handled: Got error 'PHP message: PHP Warning: Undefined array key "uri-id" in /var/www/html/friend/addon/signatur/signatur.php on line 41'
This commit is contained in:
parent
79383b282a
commit
ca2b7da6f6
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Name: signatur
|
||||
* Description: Automatically adds a signature to new posts. Admins can define a default signature, and users can configure their own.
|
||||
* Version: 1.2
|
||||
* Version: 1.3
|
||||
* Author: Matthias Ebers <https://loma.ml/profile/feb>
|
||||
* Status: Beta
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ function signatur_add_signature(array &$b)
|
|||
}
|
||||
|
||||
// Check if the post is a comment
|
||||
if (isset($b['parent']) && $b['parent'] != $b['uri-id']) {
|
||||
if ($b['parent'] && ($b['parent'] != ($b['uri-id'] ?? null))) {
|
||||
// Check if the signature should be added to comments
|
||||
$enable_signature_in_comments = DI::pConfig()->get($b['uid'], 'signatur', 'enable_signature_in_comments', true);
|
||||
if (!$enable_signature_in_comments) {
|
||||
|
|
Loading…
Add table
Reference in a new issue