From 00f10d1850fc066c11c46ec343e7492b9b41766f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 23 Feb 2021 13:33:27 +0100 Subject: [PATCH] fix typo --- htdocs/projet/event.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/event.php b/htdocs/projet/event.php index 0f565c7923c..91f763a5e83 100644 --- a/htdocs/projet/event.php +++ b/htdocs/projet/event.php @@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; // Load translation files required by the page -$langs->load('projects', 'enevntorganization'); +$langs->load('projects', 'enventorganization'); $action = GETPOST('action', 'aZ09'); $id = GETPOST('id', 'int'); @@ -45,7 +45,9 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be includ // Security check $socid = 0; -if ($user->socid > 0) $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement. +if ($user->socid > 0) { + $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement. +} $result = restrictedArea($user, 'eventorganization', $id); $permissiontoread = $user->rights->eventorganization->read;