fix sql error

This commit is contained in:
wlx 2012-09-18 05:07:54 +00:00
parent ea19413899
commit 31a44ad226
1 changed files with 1 additions and 1 deletions

View File

@ -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']))