Pull request: fix proposal
-
Hi,
I’d like to suggest a fix to the plugin code. I looked for a repo on github to make a pull request but I couldn’t find it, so I’m writing here.In
icegram.php
main file, insideicegram_load_data()
function, there is this line (n.521 in v.1.9.7.1) where you set the js object properties:$icegram_pre_data['post_obj'] = $_GET;
In our environment, the $_GET is not always an array, because of server setup and other plugin filters. And when it’s not an array the object properties are not properly set and the Icegram retargeting routine does not work as expected.
So simply I suggest an explicit type-casting and the patched line should be:$icegram_pre_data['post_obj'] = (array)$_GET;
In this way it’s always working.
I hope you can accept and include it in next release.
- The topic ‘Pull request: fix proposal’ is closed to new replies.