diff --git a/code/extensions/FusionExtension.php b/code/extensions/FusionExtension.php index eb4e8d8..a940a23 100644 --- a/code/extensions/FusionExtension.php +++ b/code/extensions/FusionExtension.php @@ -47,13 +47,12 @@ public function validate(ValidationResult $result) { // Confirm that the tag has been given a title and doesn't already exist. - $this->owner->$validate = strtolower($this->owner->$validate); if($result->valid() && !$this->owner->$validate) { $result->error("\"{$validate}\" required!"); } else if($result->valid() && $class::get_one($class, array( 'ID != ?' => $this->owner->ID, - "{$validate} = ?" => $this->owner->$validate + "LOWER({$validate}) = ?" => strtolower($this->owner->$validate) ))) { $result->error('Tag already exists!'); }