We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2f07862f authored by Mike Sheldon's avatar Mike Sheldon

Make parameter checks in generatePlayByDays more compact

parent 29664617
......@@ -71,10 +71,7 @@ class Statistic {
global $adodb;
global $connect_string;
if (!is_string($table)) {
return false;
if (!is_integer($limit)) {
if (!is_string($table) || !is_integer($limit)) {
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment