awesome-flickr-gallery-plugin icon indicating copy to clipboard operation
awesome-flickr-gallery-plugin copied to clipboard

Notice: Undefined variables

Open flowdee opened this issue 9 years ago • 3 comments

Can you please set default values for your variables you're using? Would be great :smile:

Notice: Undefined variable: rel in /.../awesome-flickr-gallery-plugin/index.php on line 380
Notice: Undefined index: slideshow_option in /../awesome-flickr-gallery-plugin/index.php on line 68

flowdee avatar Jan 26 '16 09:01 flowdee

Here's a temporary fix for the slideshow_option notice:

In the index.php file around line 66, just after the opening of the foreach, add the following:

if ( empty( $gallery['slideshow_option'] ) || ! isset( $gallery['slideshow_option'] ) ) { break; }

That will get exit the foreach if that value is not set and prevent the "slideshow_option" notice.

slushman avatar Feb 04 '16 16:02 slushman

I know how to fix this, it's just a suggestion for the developer of the plugin ;)

flowdee avatar Feb 04 '16 18:02 flowdee

Hadn't seen these before. Will fix it in next update. Thanks for the feedback.

ronakg avatar Feb 04 '16 19:02 ronakg