projects
/
mtweb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maj version dans config.xml
[mtweb]
/
mw
/
app
/
data
/
models
/
users.php
diff --git
a/mw/app/data/models/users.php
b/mw/app/data/models/users.php
index
7a310db
..
e9eb8ad
100644
(file)
--- a/
mw/app/data/models/users.php
+++ b/
mw/app/data/models/users.php
@@
-86,7
+86,9
@@
$data = $this->env->data();
if(parent::load($index_name, $index_value) === false) return false;
if($this->get_id()){
$data = $this->env->data();
if(parent::load($index_name, $index_value) === false) return false;
if($this->get_id()){
- if(($this->roles = $data->list_user_roles($this->get_id())) === false) return false;
+ if(($this->roles = $data->list_user_roles($this->get_id())) === false){
+ $this->roles = array();
+ }
}
return true;
}
}
return true;
}