Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Core_Plugin_Ini::offsetSet throws exception even if $offset is valid #78

Open
pcfreak30 opened this issue Nov 20, 2015 · 0 comments
Open

Comments

@pcfreak30
Copy link

in

public function offsetSet($offset, $value)
    {
        if (is_scalar($offset))
            $this->contents[$offset] = $value;

        throw new Exception('Could not set INI value: $offset must be a scalar');
    }

You need to make that an if else as setting an INI will always crash with the Exception.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant