Fixed _validate in XFMG\Service\Media\Creator must return an array

TickTackk

Well-known member
Affected version
2.0.x
screenshot-2018.11.05-10-52-30.webp

In file src\addons\XFMG\Service\Media\Creator.php

Find:
PHP:
    public function _validate()
    {
        $this->finalSetup();

        if (!$this->container->canAddMedia($error))
        {
            return $error;
        }

Replace with:
PHP:
    public function _validate()
    {
        $this->finalSetup();

        if (!$this->container->canAddMedia($error))
        {
            return [$error];
        }
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XFMG release (2.0.6).

Change log:
Make sure the _validate services are returning arrays.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom