Commit e36a3f1d authored by Administrator's avatar Administrator 💬

fix(hot): lesson pages when the config is wrong somehow

parent 8c25ab9b
...@@ -269,8 +269,9 @@ class M3P2Plugin extends Plugin ...@@ -269,8 +269,9 @@ class M3P2Plugin extends Plugin
}; };
// We're assuming the config exists (it should) // We're assuming the config exists (it should)
$ma = array_filter($ha->lessons, $fdp)[0]; // NOOOOPE IT DOES NOT THERE IS A BUG TO HUNT HERE FIXME
$mb = array_filter($hb->lessons, $fdp)[0]; $ma = @array_filter($ha->lessons, $fdp)[0];
$mb = @array_filter($hb->lessons, $fdp)[0];
if (isset($ma['order'])) { if (isset($ma['order'])) {
$la = floor($ma['order']); $la = floor($ma['order']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment