• Resolved den1xxx

    (@den1xxx)


                    $stats = array();
    
                    if ( ! $stats['block_ip'] ) {
                        $stats['block_ip'] = '-';
                    }
                    if ( ! $stats['alerts'] ) {
                        $stats['alerts'] = '-';
                    }

    This is 113-120 block code in wp-content/plugins/hide-my-wp/view/Dashboard.php

    To fix problem

    ( ! $stats[‘block_ip’] ) change to ( empty($stats[‘block_ip’]) )

    ( ! $stats[‘alerts’] ) change to ( empty($stats[‘alerts’]) )

    OR:

    $stats[‘block_ip’] = $stats[‘block_ip’] ?? ‘-‘;

    $stats[‘alerts’] = $stats[‘alerts’] ?? ‘-‘;

    • This topic was modified 2 months, 2 weeks ago by den1xxx.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter den1xxx

    (@den1xxx)

    Hmm, simple

    $stats = array(‘block_ip’=>’-‘,’alerts’=>’-‘);

    Plugin Support Peter

    (@petersquirrly)

    Thank you for the heads up! We implemented the fix and it will be available in the next update.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.