Fixed uid checking in get_users_all_email_addresses() resolving #1206

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-10-23 14:43:18 +02:00
parent 4db45674d3
commit 8f2a655325

View File

@ -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)) {