• Resolved another-webmaster

    (@another-webmaster)


    Hi Dario,

    for a start, great plugin which shows a lot of time and afford.
    But we having a minor php notice here, is it possible to hand code to change it?
    No direct need to make an update but we debug all the time during developments and it’s kinda nagging so to say..

    Undefined offset: 1
    Type: PHP Notice
    Line: 38
    File: yasr-metabox-top-right.php

    Best Regards,

Viewing 1 replies (of 1 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello,
    you find a bug! Thank you for sharing this!

    I never noticed because in my test I usually set a decimal rating for the overall_rating value: I’ve fixed this, if you don’t want to wait the next release just do this:

    open file yasr-metabox-top-right and change this

    if($int != 5) {

    to this

    if($int < 5 && array_key_exists(1, $overall_rating_array) == TRUE) {

    This will fix the notice!

    Best,
    Dario

Viewing 1 replies (of 1 total)

The topic ‘Undefined offset: 1’ is closed to new replies.