mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function setQuota($quota) { /* {{{ */
|
function setQuota($quota) { /* {{{ */
|
||||||
|
if (!is_numeric($quota))
|
||||||
|
return false;
|
||||||
|
if($quota < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
$quota = intval($quota);
|
$quota = intval($quota);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user