• Resolved joloshop

    (@joloshop)


    I updated to WordPress 6.5.2 and getting this Deprecated Notice on the Dashboard in the Backend.

    Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/vol15_8/infinityfree.com/if0_36282198/htdocs/wp-content/plugins/affiliate-power/affiliate-power-widget.php on line 95

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joloshop

    (@joloshop)

    You can fix it if you change the line 95-101 to:

    echo $refresh_button.'

    '.('Today', 'affiliate-power').':'.((isset($sum_today) && $sum_today !== null) ? number_format($sum_today, 2, ',', '.').' €' : '0,00 €').' '.('Yesterday', 'affiliate-power').':'.((isset($sum_yesterday) && $sum_yesterday !== null) ? number_format($sum_yesterday, 2, ',', '.').' €' : '0,00 €').' '.('This month', 'affiliate-power').':'.((isset($sum_this_month) && $sum_this_month !== null) ? number_format($sum_this_month, 2, ',', '.').' €' : '0,00 €').' '.('Last month', 'affiliate-power').':'.((isset($sum_last_month) && $sum_last_month !== null) ? number_format($sum_last_month, 2, ',', '.').' €' : '0,00 €').' '.('Total', 'affiliate-power').':'.((isset($sum_total) && $sum_total !== null) ? number_format($sum_total, 2, ',', '.').' €' : '0,00 €').'
    '.('Details', 'affiliate-power').'';

    • This reply was modified 11 months ago by joloshop.
    Plugin Author JonasBreuer

    (@jonasbreuer)

    Thank you for letting me know. This will be fixed with the next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated Notice’ is closed to new replies.