Skip to content

Commit

Permalink
Fix PHP 8 warning in new code
Browse files Browse the repository at this point in the history
  • Loading branch information
baschny committed Sep 14, 2023
1 parent caf1956 commit ab69a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Generator/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ protected function getFakerFields()
}

// Workaround so DataHandler doesn't set crdate to $GLOBALS['EXEC_TIME']
if ($GLOBALS['TCA'][$this->table]['ctrl']['crdate'] &&
if (isset($GLOBALS['TCA'][$this->table]['ctrl']['crdate']) &&
$GLOBALS['TCA'][$this->table]['ctrl']['crdate'] == $name) {
unset($GLOBALS['TCA'][$this->table]['ctrl']['crdate']);
}
}

return $fields;
}
}
}

0 comments on commit ab69a82

Please sign in to comment.