Skip to content

Commit 781866b

Browse files
committed
#82 Fix
1 parent 3ddd264 commit 781866b

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Classes/Core/Translate.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ public function cool2params($uri = '') {
401401
case '_POST': $_POST = array_merge($_POST,$res); break;
402402
default: $GLOBALS[$x] = $res;
403403
}
404-
} else
405-
$_GET = $res;
404+
} else {
405+
$_GET = $res;
406+
}
406407

407408
$this->uri = $res;
408409

Classes/Integration/CoolUri.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ protected static function getTemplateCount($pagId)
442442

443443

444444
$db = &$GLOBALS['TYPO3_DB'];
445-
$temp = $db->exec_SELECTquery('COUNT(*) as num', 'sys_template',
446-
'deleted=0 AND hidden=0 AND pid=' . $pagId . ' AND root=1' . $enable);
447-
$countCache[$pagId] = (int)$db->sql_fetch_assoc($temp);
445+
$temp = $db->exec_SELECTquery('COUNT(*) as num', 'sys_template', 'deleted=0 AND hidden=0 AND pid=' . $pagId . ' AND root=1' . $enable);
446+
$row = $db->sql_fetch_assoc($temp);
447+
$countCache[$pagId] = $row['num'];
448448
return $countCache[$pagId];
449449
}
450450

ext_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CREATE TABLE link_cache (
1919
id int(10) unsigned NOT NULL auto_increment,
2020
params blob,
2121
url char(255),
22-
tstamp TIMESTAMP default CURRENT_TIMESTAMP,
22+
tstamp TIMESTAMP NOT NULL default CURRENT_TIMESTAMP,
2323
crdatetime datetime default NULL,
2424
sticky tinyint(1) unsigned default 0,
2525

0 commit comments

Comments
 (0)