Skip to content

Commit 7eb9b5e

Browse files
authored
Merge pull request #3118 from kwizer15/fix/repo-ajax
Fix undefined variable in AJAX remove after market→repo migration
2 parents 4c071eb + fa58b66 commit 7eb9b5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/ajax/repo.ajax.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565
if ($update->getConfiguration('doNotUpdate') == 1) {
6666
throw new Exception(__('Mise à jour et réinstallation désactivées sur ', __FILE__) . ' ' . $repo->getLogicalId());
67-
}
67+
}
6868
$update->setSource(init('repo'));
6969
$update->setLogicalId($repo->getLogicalId());
7070
$update->setType($repo->getType());
@@ -85,15 +85,15 @@
8585
unautorizedInDemo();
8686
$class = 'repo_' . init('repo');
8787
$repo = $class::byId(init('id'));
88-
if (!is_object($market)) {
88+
if (!is_object($repo)) {
8989
throw new Exception(__('Impossible de trouver l\'objet associé :', __FILE__) . ' ' . init('id'));
9090
}
9191
$update = update::byTypeAndLogicalId($repo->getType(), $repo->getLogicalId());
9292
try {
9393
if (is_object($update)) {
9494
$update->remove();
9595
} else {
96-
$market->remove();
96+
$repo->remove();
9797
}
9898
} catch (Exception $e) {
9999
if (is_object($update)) {

0 commit comments

Comments
 (0)