User Tools

Site Tools


urapidflow:v3:run_scheduled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
urapidflow:v3:run_scheduled [2018/11/14 19:43]
wtsergo
urapidflow:v3:run_scheduled [2019/03/19 21:06] (current)
wtsergo
Line 38: Line 38:
 if ($configLoader instanceof \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled) { if ($configLoader instanceof \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled) {
     $pfsDiVal = @$omCfgLoaded['​arguments'​]['​Magento\Catalog\Model\Indexer\Product\Flat\State'​];​     $pfsDiVal = @$omCfgLoaded['​arguments'​]['​Magento\Catalog\Model\Indexer\Product\Flat\State'​];​
-    $pfsDiVal = @unserialize($pfsDiVal);​ +    ​if (is_array($pfsDiVal) && isset($pfsDiVal['​isAvailable'​]) && is_array($pfsDiVal['​isAvailable'​])) { 
-    if (!is_array($pfsDiVal)) { +        $pfsDiVal['​isAvailable'​]['​_v_'​] = false; 
-        $pfsDiVal = [];+    } elseif (!is_array($pfsDiVal)) { 
 +        ​$pfsDiVal = @unserialize($pfsDiVal);​ 
 +        if (!is_array($pfsDiVal)) { 
 +            $pfsDiVal = []
 +        } 
 +        $pfsDiVal['​isAvailable'​] = false; 
 +        $pfsDiVal = serialize($pfsDiVal);
     }     }
-    ​$pfsDiVal['​isAvailable'​] = false; +    $omCfgLoaded['​arguments'​]['​Magento\Catalog\Model\Indexer\Product\Flat\State'​] = $pfsDiVal;
-    ​$omCfgLoaded['​arguments'​]['​Magento\Catalog\Model\Indexer\Product\Flat\State'​] = serialize($pfsDiVal);+
 } else { } else {
     $omCfgLoaded['​Magento\Catalog\Model\Indexer\Product\Flat\State'​]['​arguments'​]['​isAvailable'​] = false;     $omCfgLoaded['​Magento\Catalog\Model\Indexer\Product\Flat\State'​]['​arguments'​]['​isAvailable'​] = false;
urapidflow/v3/run_scheduled.txt · Last modified: 2019/03/19 21:06 by wtsergo