feediron / ttrss_plugin-feediron

Evolution of ttrss_plugin-af_feedmod
https://discourse.tt-rss.org/t/plugin-update-feediron-v1-2-0/2018
MIT License
204 stars 34 forks source link

Uncaught TypeError: array_key_exists when testing #171

Closed michailf closed 3 years ago

michailf commented 3 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

Expected Behavior

Test should give a result

Current Behavior

Test gives no result

Steps to Reproduce

  1. Create a configuration with a cleanup section that uses a single string.
  2. Create a test configuration with a cleanup section that now has an array of strings.
Failure Logs ``` Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /var/www/html/tt-rss/plugins.local/feediron/init.php:716 Stack trace: #0 /var/www/html/tt-rss/plugins.local/feediron/init.php(718): Feediron->arrayRecursiveDiff() #1 /var/www/html/tt-rss/plugins.local/feediron/init.php(762): Feediron->arrayRecursiveDiff() #2 /var/www/html/tt-rss/classes/pluginhandler.php(15): Feediron->test() #3 /var/www/html/tt-rss/backend.php(137): PluginHandler->catchall() #4 {main} thrown ```
dugite-code commented 3 years ago

Thanks for opening the issue. Good catch, should be a fairly simple fix