Skip to content

Commit 37928ff

Browse files
author
Alexandra Nantel
committed
SQL and PHP cases
PHP true,false,null in lowercase SQL keywords uppercase
1 parent 9e1b819 commit 37928ff

File tree

2 files changed

+63
-63
lines changed

2 files changed

+63
-63
lines changed

extension.driver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public function interceptPage($context)
384384
$modified = $this->_cacheLite->lastModified();
385385
$modified_gmt = gmdate('r', $modified);
386386
if ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $modified_gmt ||
387-
str_replace('"', NULL, stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])) == $this->computeEtag()){
387+
str_replace('"', null, stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])) == $this->computeEtag()){
388388
Page::renderStatusCode(Page::HTTP_NOT_MODIFIED);
389389
exit();
390390
}
@@ -752,10 +752,10 @@ protected function createPageTable()
752752
// Create extension table
753753
return Symphony::Database()->query("
754754
CREATE TABLE `tbl_cachelite_references` (
755-
`page` char(128) NOT NULL,
756-
`section_id` int(11) NOT NULL default 0,
757-
`entry_id` int(11) NOT NULL default 0,
758-
`timestamp` datetime NOT NULL /*!50600 default CURRENT_TIMESTAMP */,
755+
`page` CHAR(128) NOT NULL,
756+
`section_id` INT(11) NOT NULL default 0,
757+
`entry_id` INT(11) NOT NULL default 0,
758+
`timestamp` DATETIME NOT NULL /*!50600 default CURRENT_TIMESTAMP */,
759759
PRIMARY KEY (`page`, `section_id`, `entry_id`),
760760
KEY `page` (`page`),
761761
KEY `section_page` (`page`, `section_id`),

0 commit comments

Comments
 (0)