X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FBundleEntityFormBase.php;h=aa51cbcaac88ab262837c32fdcc6dfeb78e3018f;hb=refs%2Fheads%2Fd864;hp=f51dd361cfbce72970cb25c434210115ffe09821;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/BundleEntityFormBase.php b/web/core/lib/Drupal/Core/Entity/BundleEntityFormBase.php index f51dd361c..aa51cbcaa 100644 --- a/web/core/lib/Drupal/Core/Entity/BundleEntityFormBase.php +++ b/web/core/lib/Drupal/Core/Entity/BundleEntityFormBase.php @@ -22,7 +22,7 @@ class BundleEntityFormBase extends EntityForm { protected function protectBundleIdElement(array $form) { $entity = $this->getEntity(); $id_key = $entity->getEntityType()->getKey('id'); - assert('isset($form[$id_key])'); + assert(isset($form[$id_key])); $element = &$form[$id_key]; // Make sure the element is not accidentally re-enabled if it has already