confirm $path variable in assoc mode

This commit is contained in:
wlx 2012-10-31 03:10:30 +00:00
parent a2745777c2
commit 8eb4c55d9c
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ class HeiheController extends DataController
$sql = "SELECT * FROM pureftp WHERE userid=? AND homedir LIKE ?"; $sql = "SELECT * FROM pureftp WHERE userid=? AND homedir LIKE ?";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(array($ftp_user,'%'.$uuid.'%')); $sth->execute(array($ftp_user,'%'.$uuid.'%'));
$row1 = $sth->fetch(); $row1 = $sth->fetch(PDO::FETCH_ASSOC);
if(!empty($row1['passwd'])) if(!empty($row1['passwd']))
{ {