replaced print with echo

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-03-01 18:15:35 +01:00
parent f776f7d16b
commit 0410d3b3a1

View File

@ -41,8 +41,6 @@ class DomainRepository
$statement = $this->databaseConnection->getConnection()->prepare(query: $sql);
$statement->execute();
while ($result = $statement->fetch(mode: PDO::FETCH_ASSOC)) {
//print_r($result);
//die();
$domain = new Domain(name: $result['name'], panel: $result['panel'], id: $result['id']);
$domains[] = $domain;
}
@ -187,7 +185,7 @@ class DomainRepository
return $statement->rowCount();
} catch (PDOException $e) {
print($e->getMessage());
echo $e->getMessage();
return false;
}
}