From 3fa00a4aa11a8cfa15da98772026a91ceaaedb2c Mon Sep 17 00:00:00 2001 From: bednee Date: Sun, 18 Mar 2018 21:31:20 +0100 Subject: [PATCH] #82 fix II --- Classes/Integration/CoolUri.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/Integration/CoolUri.php b/Classes/Integration/CoolUri.php index 43dd4f9..5a4129c 100644 --- a/Classes/Integration/CoolUri.php +++ b/Classes/Integration/CoolUri.php @@ -443,8 +443,7 @@ protected static function getTemplateCount($pagId) $db = &$GLOBALS['TYPO3_DB']; $temp = $db->exec_SELECTquery('COUNT(*) as num', 'sys_template', 'deleted=0 AND hidden=0 AND pid=' . $pagId . ' AND root=1' . $enable); - $row = $db->sql_fetch_assoc($temp); - $countCache[$pagId] = $row['num']; + $countCache[$pagId] = $db->sql_fetch_assoc($temp); return $countCache[$pagId]; }