Skip to content

Commit

Permalink
Fix: Missing test on id
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 20, 2014
1 parent b9be26f commit 0ba82d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/expedition/fiche.php
Expand Up @@ -51,9 +51,9 @@

$origin = GETPOST('origin','alpha')?GETPOST('origin','alpha'):'expedition'; // Example: commande, propal
$origin_id = GETPOST('id','int')?GETPOST('id','int'):'';
$id = $origin_id;
if (empty($origin_id)) $origin_id = GETPOST('origin_id','int'); // Id of order or propal
if (empty($origin_id)) $origin_id = GETPOST('object_id','int'); // Id of order or propal
$id = $origin_id;
$ref=GETPOST('ref','alpha');

// Security check
Expand Down Expand Up @@ -892,7 +892,7 @@
}
}
}
else
else if ($id || $ref)
/* *************************************************************************** */
/* */
/* Edit and view mode */
Expand Down

0 comments on commit 0ba82d3

Please sign in to comment.