Skip to content

Commit 1768849

Browse files
danieldaniel
daniel
authored and
daniel
committed
Add an option to revert description
1 parent e17b8d2 commit 1768849

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugin/Articles/updateDescriptionsRemoveTags.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
$newDescription = strip_tags($value['description'], "<br><p>");
1616

1717
if($newDescription==$value['description']){
18-
continue;;
18+
continue;
1919
}
2020
$newDescription = br2nl($newDescription);
2121
if($newDescription==$value['description']){
22-
continue;;
22+
continue;
23+
}
24+
if(empty($newDescription)){
25+
continue;
2326
}
2427

2528
$video = new Video("", "", $value['id']);

0 commit comments

Comments
 (0)