mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
better checking of quota when set by setQuota()
This commit is contained in:
parent
472b066d4b
commit
4322b97fe2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user