]> andersk Git - sql-web.git/blobdiff - lib/dbaccess.lib.php
signup: lower minimum UIDs
[sql-web.git] / lib / dbaccess.lib.php
index 883e138c706792b2b853c395a79b6cc2cd8e03ab..7fcf65af66daf74770d903746336780b416addad 100644 (file)
@@ -12,7 +12,7 @@ function checkQuotas($userId=null) {
        } else {
                if (is_array($userId)) {
                        $sql_userId = sprintf("UserId IN ('%s')", implode("','",array_map('mysql_escape_string',$userId)));
-               } elseif (is_numeric($userId)) {
+               } elseif ((string)intval($userId)===(string)$userId) {
                        $sql_userId = sprintf("UserId = '%s'", mysql_escape_string($userId));
                } else {
                        die('userId parameter error in checkQuotas');
This page took 0.025057 seconds and 4 git commands to generate.