Skip to content

non_numeric value warning when $plugin['flags'] missing #6

Description

@jools-r

If a plugin in the plugin cache directory does not contain the flags item or lacks a plugin header at all, ied_plugin_composer outputs the following warning:

Warning "A non-numeric value encountered"
in /path/to/ied_plugin_composer_v1.3.0.php at line 905

This is line 905. It's not really ied_plugin_composer's problem, rather a problem with the respective plugin, but perhaps it can be silenced with this small addition:

$plugpref = ((is_numeric($plugin['flags']) & PLUGIN_HAS_PREFS)) ? ' '.$this->anchor('plugin_prefs.'.urlencode($plugin['name']), '', ' ['.gTxt('plugin_prefs').']') : '';

I'm not sure if that has other implications?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions