Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Sep 7, 2020
1 parent d55ef9c commit f44dbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -18,7 +18,7 @@

$words = db__getData($conn, "yulu", "lang", $lang);

$rand = rand(0, count($words));
$rand = rand(0, count($words) - 1);


echo $words[$rand]['words'];
Expand Down

0 comments on commit f44dbba

Please sign in to comment.