Skip to content

Commit

Permalink
fix: Variable xxx might not be defined & phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
brunob committed Mar 22, 2023
1 parent 7b5226a commit 80735de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions action/editer_hal.php
Expand Up @@ -112,8 +112,8 @@ function hal_modifier($id_hal, $set = false) {
$id_hal,
[
'nonvide' => ['titre' => _T('info_sans_titre')],
'invalideur' => $invalideur,
'indexation' => $indexation
'invalideur' => $invalideur ?? false,
'indexation' => $indexation ?? false
],
$c
)
Expand Down
6 changes: 3 additions & 3 deletions action/editer_hals_publication.php
Expand Up @@ -9,7 +9,7 @@
*
* $c est un contenu (par defaut on prend le contenu via _request())
*
* @param int $id_hal
* @param int $id_hals_publication
* @param array|bool $set
* @return string
*/
Expand All @@ -36,8 +36,8 @@ function hals_publication_modifier($id_hals_publication, $set = false) {
$id_hals_publication,
[
'nonvide' => [],
'invalideur' => $invalideur,
'indexation' => $indexation
'invalideur' => $invalideur ?? false,
'indexation' => $indexation ?? false
],
$c
)
Expand Down
1 change: 1 addition & 0 deletions genie/hal.php
Expand Up @@ -127,6 +127,7 @@ function inserer_publication_hal($data, $now_id_hal, $statut, $url_syndic, &$fai
// S'il y a plusieurs liens qui repondent, il faut choisir le plus proche
// (ie meme titre et pas deja fait), le mettre a jour et ignorer les autres
$n = 0;
$id = null;
$s = sql_select(
'id_hals_publication,docid,titre,id_hal,statut',
'spip_hals_publications',
Expand Down

0 comments on commit 80735de

Please sign in to comment.