better checking of quota when set by setQuota()

This commit is contained in:
Uwe Steinmann 2021-09-20 16:40:30 +02:00
parent 472b066d4b
commit 4322b97fe2

View File

@ -620,6 +620,11 @@ class SeedDMS_Core_User { /* {{{ */
* @return bool
*/
function setQuota($quota) { /* {{{ */
if (!is_numeric($quota))
return false;
if($quota < 0)
return false;
$db = $this->_dms->getDB();
$quota = intval($quota);