diff --git a/htdocs/user/note.php b/htdocs/user/note.php index ca623862a77..6985fe3724b 100644 --- a/htdocs/user/note.php +++ b/htdocs/user/note.php @@ -3,6 +3,7 @@ * Copyright (C) 2004-2015 Laurent Destailleur * Copyright (C) 2005-2015 Regis Houssin * Copyright (C) 2024-2026 Frédéric France + * Copyright (C) 2026 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -62,7 +63,7 @@ if (($object->id != $user->id) && (!$user->hasRight("user", "user", "read"))) { if ($object->id == $user->id) { $permissionnote = $user->hasRight("user", "self", "write"); // Used by the include of actions_setnotes.inc.php } else { - $permissionnote = $user->hasRight("user", "user", "write")); // Used by the include of actions_setnotes.inc.php + $permissionnote = $user->hasRight("user", "user", "write"); // Used by the include of actions_setnotes.inc.php } // Security check @@ -81,7 +82,7 @@ $result = restrictedArea($user, 'user', $id, 'user&user', $feature2); /* * Actions */ -$parameters = array('id'=>$socid); +$parameters = array('id' => $socid); $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');