API list user details not woring if debug #886

This commit is contained in:
Ulrich Block 2016-06-27 11:33:00 +02:00
parent 4cc8d1502f
commit e1ab1f90f1

View File

@ -622,7 +622,7 @@ if (array_value_exists('action', 'add', $data)) {
$tempArray = array();
$query = $sql->prepare("SELECT `webVhostID`,`active`,`hdd`,`hddUsage`,`dns`,`externalID` FROM `webVhost` WHERE `userID`=? AND `resellerID`=?");
$query = $sql->prepare("SELECT `webVhostID`,`active`,`hdd`,`hddUsage`,`defaultDomain` AS `dns`,`externalID` FROM `webVhost` WHERE `userID`=? AND `resellerID`=?");
$query->execute(array($userArray['userdetails']['id'], $resellerID));
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
$tempArray[] = $row;