diff --git a/application/default/controllers/SubmitController.php b/application/default/controllers/SubmitController.php index 3a8f99c6..fcdb371e 100644 --- a/application/default/controllers/SubmitController.php +++ b/application/default/controllers/SubmitController.php @@ -166,7 +166,7 @@ class SubmitController extends Zend_Controller_Action $ftp_user = "qherc".$u_id."upload"; $sql = "SELECT * FROM pureftp WHERE userid=? AND homedir LIKE ?"; $sth = $this->db->prepare($sql); - $sth->execute(array($u_id,'%'.$uuid.'%')); + $sth->execute(array($ftp_user,'%'.$uuid.'%')); $row = $sth->fetch(); if(!empty($row['passwd']))