mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:51:59 +01:00
Fixed uid checking in get_users_all_email_addresses() resolving #1206
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4db45674d3
commit
8f2a655325
@ -49,7 +49,7 @@ class ModelUserUser extends Model {
|
||||
$data = array();
|
||||
$uids = $uid;
|
||||
|
||||
if($uid > 0) {
|
||||
if($uid >= 0) {
|
||||
$query = $this->db->query("SELECT gid FROM " . TABLE_EMAIL_LIST . " WHERE uid=?", array((int)$uid));
|
||||
|
||||
if(isset($query->rows)) {
|
||||
|
Loading…
Reference in New Issue
Block a user