Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hongweipeng committed Apr 21, 2017
1 parent 3b05da6 commit d460ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function theme_random_posts(){
);
$db = Typecho_Db::get();
$rand = "RAND()";
if (stripos($db->getAdapterName(), 'sqlite') >= 0) {
if (stripos($db->getAdapterName(), 'sqlite') !== false) {
$rand = "RANDOM()";
}

Expand Down

0 comments on commit d460ef2

Please sign in to comment.