mikehenken / getsimple-blog

Blog system for Get-Simple CMS
5 stars 4 forks source link

minor error #2

Closed tablatronix closed 12 years ago

tablatronix commented 12 years ago

When i first installed it it took over my index page and showed this error.

Warning: array_chunk() expects parameter 1 to be array, boolean given in /hsphere/local/home/salverso/tablatronix.com/getsimple_dev/plugins/blog.php on line 1011 No Posts

mikehenken commented 12 years ago

This is because you have no posts. I will put a conditional in the plugin to display a nice "no posts" message for this case. Thank you for the update.

In terms of taking over the index page.. Is this a undesirable effect?

tablatronix commented 12 years ago

I've never have liked plugins that do things like that without first saving the settings or some user intervention. Installing this on a live site would cause issues until admin could change the settings.

mikehenken commented 12 years ago

Ok I will figure out a work around in 1.1. It causes some issues if it is blank so I will have to find some default value to make it.