Support » Plugin: HREFLANG Tags Lite » Undefined variable: keys

  • Resolved goaround

    (@goaroundagain)


    I get an Notice about undefined variable keys on existing taxonomies without alternative URLs:

    Notice: Undefined variable: keys in /wp-content/plugins/hreflang-tags-by-dcgws/includes/functions.php on line 369

    PHP Version: 7.2

    Line 369:

    if (count($keys) == 0) {

    Suggested solution: Using empty($keys) instead of count

    if (empty($keys)) {

    • This topic was modified 6 months, 2 weeks ago by goaround.
    • This topic was modified 6 months, 2 weeks ago by goaround.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined variable: keys’ is closed to new replies.