Skip to content

Commit

Permalink
DD-1449 : getAttribute returns empty not false, fixing if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
guardiola86 committed Jul 17, 2019
1 parent c1fea2f commit a938ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dennis/Link/Checker/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function replace() {
* @return bool
*/
public function removeMceHref() {
if ($this->element()->getAttribute('mce_href')) {
if (!empty($this->element()->getAttribute('mce_href'))) {
$this->element()->removeAttribute('mce_href');
return TRUE;
}
Expand Down

0 comments on commit a938ca7

Please sign in to comment.