PDOStatement::rowCount is a function

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-20 11:56:24 +01:00
parent 72fc9db38d
commit e132723475

View File

@@ -287,7 +287,7 @@ class IntegrityCheck {
");
Database::pexecute($cwg_stmt, array('webserveruser' => Settings::Get('system.httpuser')));
if ($cwg_stmt->rowCount > 0) {
if ($cwg_stmt->rowCount() > 0) {
$this->_log->logAction(ADM_ACTION, LOG_NOTICE, "Customers are missing the webserver-user as group-member, integrity-check can fix that");
if ($fix) {
// prepare update statement
@@ -350,7 +350,7 @@ class IntegrityCheck {
");
Database::pexecute($cwg_stmt, array('localuser' => $localuser));
if ($cwg_stmt->rowCount > 0) {
if ($cwg_stmt->rowCount() > 0) {
$this->_log->logAction(ADM_ACTION, LOG_NOTICE, "Customers are missing the local froxlor-user as group-member, integrity-check can fix that");
if ($fix) {
// prepare update statement