diff --git a/library/Trait/Indexable.php b/library/Trait/Indexable.php
index f2334fb54e4db926c2a6255dd65ab64d13891eea..8120e7b975c0a0c06e01503a5474336aed631d9e 100644
--- a/library/Trait/Indexable.php
+++ b/library/Trait/Indexable.php
@@ -59,7 +59,8 @@ trait Trait_Indexable {
 	public function unindex() {
 		$alpha_key = $this->getAlphaKey();
 
-		if (empty($domains = $this->getDomaines())) {
+		$domains = $this->getDomaines();
+		if (empty($domains)) {
 			Class_NoticeDomain::deleteBy(['record_alpha_key' => $alpha_key,
 																		'panier_id' => 0]);
 		}