Skip to content

Commit

Permalink
Update html_helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nowackipawel authored Nov 27, 2018
1 parent 799f9f8 commit a5b93ab
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions system/Helpers/html_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,7 @@ function img($src = '', bool $indexPage = false, $attributes = ''): string

if (! isset($src['alt']))
{
if(is_array($attributes) && isset($attributes['alt']))
{
$src['alt'] = $attributes['alt'];
}
//If there is no alt attribute defined, set it to an empty string.
else
{
$src['alt'] = '';
}
$src['alt'] = $attributes['alt'] ?? '';
}


Expand Down

0 comments on commit a5b93ab

Please sign in to comment.