Bug correction in load method for Users in global paybacks

This commit is contained in:
Phyks 2013-09-24 14:28:31 +02:00
parent 8d9a2bc1f1
commit 003df4d333
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@
$query .= $field; $query .= $field;
} }
$query .= ' FROM '.MYSQL_PREFIX.$this->TABLE_NAME.' WHERE payback_id=:payback_id'; $query .= ' FROM '.MYSQL_PREFIX.$this->TABLE_NAME.' WHERE global_payback_id=:global_payback_id';
$query = $this->getConnection()->prepare($query); $query = $this->getConnection()->prepare($query);
$query->bindParam(':payback_id', $this->payback_id); $query->bindParam(':global_payback_id', $this->payback_id);
$query->execute(); $query->execute();
$results = $query->fetchAll(); $results = $query->fetchAll();