2013-11-21, 07:28:02
Excellent plugin, but I'm having trouble with the random function.
I have 13 links (id's 0 to 12) and use the random function as below.
get_randlink(0,99);
I am setting the max id to 99 to allow for new links that may be added, however every now and then the function appears to be returning 'null'. If I set the maximum to 12 or less all is good but obviously I don't want to be updating this every time the user adds a new link!
Anyone know where I'm going wrong or is this a bug?
I have 13 links (id's 0 to 12) and use the random function as below.
get_randlink(0,99);
I am setting the max id to 99 to allow for new links that may be added, however every now and then the function appears to be returning 'null'. If I set the maximum to 12 or less all is good but obviously I don't want to be updating this every time the user adds a new link!
Anyone know where I'm going wrong or is this a bug?