Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
11
$formfields = $form->fields;
12
$formid = $formfields->fieldbyName('ID');
13
//error_log($formid->value());
14
$sql = 'select CreatorID from SiteTree where ID='.$formid->value().' Limit 1';
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.