Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
fix: phpstan, variable might not be defined
Browse files Browse the repository at this point in the history
Variable $id_me might not be defined.
Variable $tags might not be defined.
Variable $image might not be defined.
  • Loading branch information
brunob authored and JamesRezo committed Jul 6, 2024
1 parent 7abef55 commit bc1f255
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion genie/seenthis_importer_flux.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function seenthis_importer_rss_article($article, $moi, $create = true) {
}

foreach ($urls as $i => $urlo) {
$id_me = 0;

# fixer les URLs
$urlo = sucrer_utm($urlo);

Expand Down Expand Up @@ -178,6 +180,7 @@ function seenthis_importer_rss_article($article, $moi, $create = true) {

function seenthis_creer_message_local($article, $url) {
$message = $article['titre'] . "\n" . '[@@@@@@]';
$image = '';
if (
strlen($desc = $article['descriptif'])
or strlen($desc = $article['content'])
Expand All @@ -203,8 +206,8 @@ function seenthis_creer_message_local($article, $url) {
$message .= "\n\n" . $desc . '';
}

$tags = [];
if (is_array($article['tags'])) {
$tags = [];
# tags a ignorer
$censure = array_map('mb_strtolower', array_map('trim', file(find_in_path('tags_ignore.txt'))));
foreach ($article['tags'] as $tag) {
Expand Down

0 comments on commit bc1f255

Please sign in to comment.