Skip to content

Commit c364af0

Browse files
authored
Update typecho_redis.class.php
close #5
1 parent c191d4e commit c364af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/typecho_redis.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private function __construct($option=null) {
1616
}
1717

1818
static public function getInstance($option) {
19-
if (is_null ( self::$_instance ) || isset ( self::$_instance )) {
19+
if (is_null ( self::$_instance ) || ! isset ( self::$_instance )) {
2020
self::$_instance = new self($option);
2121
}
2222
return self::$_instance;
@@ -56,4 +56,4 @@ public function flush()
5656
{
5757
return $this->redis->flushDB();
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)