diff --git a/Classes/Core/Translate.php b/Classes/Core/Translate.php index eb085f9..9bcfca9 100644 --- a/Classes/Core/Translate.php +++ b/Classes/Core/Translate.php @@ -401,8 +401,9 @@ public function cool2params($uri = '') { case '_POST': $_POST = array_merge($_POST,$res); break; default: $GLOBALS[$x] = $res; } - } else - $_GET = $res; + } else { + $_GET = $res; + } $this->uri = $res; diff --git a/Classes/Integration/CoolUri.php b/Classes/Integration/CoolUri.php index 698c5da..43dd4f9 100644 --- a/Classes/Integration/CoolUri.php +++ b/Classes/Integration/CoolUri.php @@ -442,9 +442,9 @@ 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); - $countCache[$pagId] = (int)$db->sql_fetch_assoc($temp); + $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']; return $countCache[$pagId]; } diff --git a/ext_tables.sql b/ext_tables.sql index 20084e8..f50ffa0 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -19,7 +19,7 @@ CREATE TABLE link_cache ( id int(10) unsigned NOT NULL auto_increment, params blob, url char(255), - tstamp TIMESTAMP default CURRENT_TIMESTAMP, + tstamp TIMESTAMP NOT NULL default CURRENT_TIMESTAMP, crdatetime datetime default NULL, sticky tinyint(1) unsigned default 0,