Skip to content

Commit

Permalink
fix: Variable xxx might not be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
brunob committed Mar 22, 2023
1 parent e2c2c1f commit d0388d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hal_auteurs_pipelines.php
Expand Up @@ -122,6 +122,8 @@ function hal_auteurs_post_edition($flux) {
foreach ($hals as $hal) {
// authid
$hal = trim($hal);
$id_hal = null;
$set = [];
if (is_numeric($hal) and $hal > 0) {
$id_hal = sql_fetsel('statut,id_hal', 'spip_hals', 'authid = ' . intval($hal));
$set = ['authid' => $hal,'statut' => 'publie'];
Expand Down

0 comments on commit d0388d7

Please sign in to comment.