Etemplate: Fix unwanted row reset if box had no ID

This commit is contained in:
nathangray 2020-11-04 12:53:14 -07:00
parent f6aad0cd46
commit b3ed6372f7

View File

@ -73,7 +73,7 @@ class Box extends Etemplate\Widget
// Expand children
$columns_disabled = null;
if($this->children[0] && strpos($this->children[0]->id, '$') !== false)
if($this->id && $this->children[0] && strpos($this->children[0]->id, '$') !== false)
{
// Need to set this so the first child can repeat
$expand['row'] = 0;