Skip to content

Commit

Permalink
Fix: Select of user
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 11, 2013
1 parent 9eae775 commit b4299ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facturestats.class.php
Expand Up @@ -56,7 +56,7 @@ function __construct($db, $socid, $mode, $userid=0)
global $conf;

$this->db = $db;
$this->socid = $socid;
$this->socid = ($socid > 0 ? $socid : 0);
$this->userid = $userid;

if ($mode == 'customer')
Expand Down
4 changes: 2 additions & 2 deletions htdocs/compta/facture/stats/index.php
Expand Up @@ -34,8 +34,8 @@
if ($mode == 'customer' && ! $user->rights->facture->lire) accessforbidden();
if ($mode == 'supplier' && ! $user->rights->fournisseur->facture->lire) accessforbidden();

$userid=GETPOST('userid','int'); if ($userid < 0) $userid=0;
$socid=GETPOST('socid','int'); if ($socid < 0) $socid=0;
$userid=GETPOST('userid','int');
$socid=GETPOST('socid','int');
// Security check
if ($user->societe_id > 0)
{
Expand Down

0 comments on commit b4299ad

Please sign in to comment.