Plugin Directory

Changeset 2067122


Ignore:
Timestamp:
04/11/2019 11:26:52 AM (7 years ago)
Author:
vashkatsi
Message:

fixed error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbq/tags/1.4.4/includes/BbqOption.php

    r2030539 r2067122  
    6969        $blocks = get_option($this->option_prefix . 'blocks');
    7070        $blocks = json_decode($blocks);
     71        if(!$blocks) {
     72            return [];
     73        }
    7174        for ($i = 0; $i < count($blocks); $i++) {
    7275            $blocks[$i]->positionNumber = BbqBlockPosition::getPositionNumber($blocks[$i]);
Note: See TracChangeset for help on using the changeset viewer.