Skip to content
Snippets Groups Projects
Commit c4bd8e6d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Avoid errors when objectid is -1

parent 500d7379
No related branches found
No related tags found
No related merge requests found
......@@ -1634,7 +1634,7 @@ function restrictedArea($user, $features='societe', $objectid=0, $dbtablename=''
// If we have a particular object to check permissions on, we check this object
// is linked to a company allowed to $user.
if (!empty($objectid))
if (!empty($objectid) && $objectid > 0)
{
foreach ($features as $feature)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment