]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorDevops <sys@15gifts.com>
Sun, 14 May 2017 23:43:11 +0000 (00:43 +0100)
committerDevops <sys@15gifts.com>
Sun, 14 May 2017 23:43:11 +0000 (00:43 +0100)
www/dbq/dbq.php

index b01a5414a1256969a2e6a1e658a532e9de2d1f3a..c514e4d56307895818b025af48f2676a1f2293f3 100644 (file)
@@ -104,6 +104,7 @@ class DbQ extends nb {
     if (isset($this->perms[$perm])) {
       $this->perm = $this->perms[$perm];
     }
+    if (!preg_match('/^[0-9]+$/',$perm)) $perm = 0;
 
     parent::__construct($opt);