mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Replace from about only if about is not empty
This commit is contained in:
parent
223c220aa4
commit
e0225924e1
3 changed files with 6 additions and 3 deletions
|
@ -7724,7 +7724,7 @@ function isImage($file) {
|
|||
}
|
||||
|
||||
function isHTMLEmpty($html_string) {
|
||||
return empty(trim(strip_specific_tags($html_string, ['br', 'p'])));
|
||||
return empty(trim(str_replace(array("\r", "\n"), array('', ''), strip_specific_tags($html_string, ['br', 'p']))));
|
||||
}
|
||||
|
||||
function totalImageColors($image_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue