mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
fixed an imap auth related bug
This commit is contained in:
@ -294,9 +294,9 @@ class ModelUserUser extends Model {
|
||||
}
|
||||
|
||||
|
||||
public function get_next_uid() {
|
||||
public function get_next_uid($table = TABLE_USER) {
|
||||
|
||||
$query = $this->db->query("SELECT MAX(uid) AS last_id FROM " . TABLE_USER);
|
||||
$query = $this->db->query("SELECT MAX(uid) AS last_id FROM " . $table);
|
||||
|
||||
if(isset($query->row['last_id']) && $query->row['last_id'] > 0) {
|
||||
return (int)$query->row['last_id'] + 1;
|
||||
|
Reference in New Issue
Block a user