WebDevStudios / WDS-Simple-Page-Builder

Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements.
GNU General Public License v2.0
136 stars 25 forks source link

Stop php error when saving from the Pagebuilder options page #50

Closed blobaugh closed 9 years ago

blobaugh commented 9 years ago

When saving from the PB options page a php error was being thrown because the parts_saved_layouts field was null. This caused the foreach to fail as it had nothing to iterate over.

May be related to #39

blobaugh commented 9 years ago

@jazzsequence can you make sure this makes sense? The parts_saved_layouts field was coming up as null. I simply bypassed the loop and returned the value as it was.

jazzsequence commented 9 years ago

@blobaugh Looks good to me. Wanted to keep that in for backpat, but it doesn't really do anything now.