Skip to content

Commit 7714e3b

Browse files
committedApr 4, 2015
Merge pull request #94 from e3betht/fix_comparisons
Correcting comparisons with Booleans so they use identical operators.
2 parents fe8cf7c + 3fc09a6 commit 7714e3b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Code Climate](https://codeclimate.com/github/khoaofgod/phpfastcache/badges/gpa.svg)](https://codeclimate.com/github/khoaofgod/phpfastcache)
2+
13
---------------------------
24
Simple Yet Powerful PHP Caching Class
35
---------------------------

‎example2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// simple Caching with:
1212
$cache = phpFastCache("redis");
1313

14-
if($cache->fallback == true) {
14+
if($cache->fallback === true) {
1515
echo " USE BACK UP DRIVER = ".phpFastCache::$config['fallback']." <br>";
1616
} else {
1717
echo ' DRIVER IS GOOD <br>';

‎examples/6.cache_whole_website.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333

3434
// No caching for logined user
3535
// can use with $_COOKIE AND $_SESSION
36-
if(isset($_SESSION) && $_SESSION['logined'] == true) {
36+
if(isset($_SESSION) && $_SESSION['logined'] === true) {
3737
$caching = false;
3838
}
3939

4040
// ONLY ACCESS CACHE IF $CACHE = TRUE
41-
if($caching == true ) {
41+
if($caching === true ) {
4242
$html = __c("files")->get($keyword_webpage);
4343
}
4444

0 commit comments

Comments
 (0)
Please sign in to comment.