mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:10:11 +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();
|
$data = array();
|
||||||
$uids = $uid;
|
$uids = $uid;
|
||||||
|
|
||||||
if($uid > 0) {
|
if($uid >= 0) {
|
||||||
$query = $this->db->query("SELECT gid FROM " . TABLE_EMAIL_LIST . " WHERE uid=?", array((int)$uid));
|
$query = $this->db->query("SELECT gid FROM " . TABLE_EMAIL_LIST . " WHERE uid=?", array((int)$uid));
|
||||||
|
|
||||||
if(isset($query->rows)) {
|
if(isset($query->rows)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user