Differences From Artifact [3815e1aa10]:

To Artifact [8256935348]:


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		if (!$this->plugin)
		{
			throw new UserException('Ce plugin n\'existe pas ou n\'est pas installé correctement.');
		}

		$this->plugin->config = json_decode($this->plugin->config);
		
		if (!is_array($this->plugin->config))
		{
			$this->plugin->config = [];
		}

		$this->id = $id;
	}

	/**
	 * Enregistrer les changements dans la config







|

|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		if (!$this->plugin)
		{
			throw new UserException('Ce plugin n\'existe pas ou n\'est pas installé correctement.');
		}

		$this->plugin->config = json_decode($this->plugin->config);
		
		if (!is_object($this->plugin->config))
		{
			$this->plugin->config = new \stdClass;
		}

		$this->id = $id;
	}

	/**
	 * Enregistrer les changements dans la config