From 8cc7a80182265511a4023808b9fc38d4015a8d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20G=C3=B6tzinger?= Date: Thu, 26 Feb 2015 12:17:29 +0100 Subject: [PATCH] Fehler im Backend-Modul behoben. --- classes/RateItBackendModule.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/classes/RateItBackendModule.php b/classes/RateItBackendModule.php index acfb5f8..ac1ede6 100644 --- a/classes/RateItBackendModule.php +++ b/classes/RateItBackendModule.php @@ -633,13 +633,9 @@ class rateitBackendModule extends \BackendModule $cntSql = str_replace('%s', $where, $cntSql); - $count = $this->Database->prepare($cntSql) - ->execute() - ->fetchRow(); + $count = $this->Database->query($cntSql)->fetchRow(); - $arrRatingItems = $this->Database->prepare($sql) - ->execute() - ->fetchAllAssoc(); + $arrRatingItems = $this->Database->query($sql)->fetchAllAssoc(); $arrReturn = array(); foreach ($arrRatingItems as $rating) { if ($rating['active'] != '1') $rating['active'] = '0';