Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit e4ebd4a

Browse files
btrycedric-anne
authored andcommitted
fix call of json_decode()
1 parent 8cf0188 commit e4ebd4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/profile.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static function createFirstAccess($ID) {
6868
// add plugin's itemtype in helpdesk itemtypes for the current profile
6969
$profile = new Profile();
7070
$profile->getFromDB($ID);
71-
$helpdeskItemtypes = json_decode($profile->fields['helpdesk_item_type'], JSON_OBJECT_AS_ARRAY);
71+
$helpdeskItemtypes = json_decode($profile->fields['helpdesk_item_type'], true);
7272
$helpdeskItemtypes[] = 'PluginSimcardSimcard';
7373
$profile->update(array(
7474
'id' => $profile->getID(),

0 commit comments

Comments
 (0)