Fix arg to explode by forcing type of

This commit is contained in:
MDW 2024-03-18 22:53:46 +01:00
parent c0e8e053b8
commit fd9618c3c8
No known key found for this signature in database

View file

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2020-2024 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* 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
@ -187,6 +188,8 @@ if ($objecttype) {
}
}
'@phan-var-force CommonObject $object';
// Security check
$socid = 0;
if ($user->socid > 0) { // Protection if external user