mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix : api warning php 8.1
This commit is contained in:
parent
2e57cb1acb
commit
9d566c41df
|
|
@ -403,8 +403,8 @@ class CommentParser
|
|||
$code = 500;
|
||||
$exception = 'Exception';
|
||||
if (count($value) > 1) {
|
||||
$v1 = $value[0];
|
||||
$v2 = $value[1];
|
||||
$v1 = empty($value[0]) ? null : $value[0];
|
||||
$v2 = empty($value[1]) ? null : $value[1];
|
||||
if (is_numeric($v1)) {
|
||||
$code = $v1;
|
||||
$exception = $v2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user