fixed a php warning/bug

bcms would never stop when it has indexed all the post content because it couldn't get the real value of reindex_limit. this also gets rid of a php warning.