diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index aa629955f53accee8c29c4b88328ef46f66de635..8794222c88e4e3b0dfabbf58aacf0f05a4e0f2de 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -30,6 +30,7 @@ $langs->load("sendings");
 $langs->load("deliveries");
 $langs->load('companies');
 
+$socid=GETPOST('socid','int');
 // Security check
 $expeditionid = GETPOST('id','int');
 if ($user->societe_id) $socid=$user->societe_id;