projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab654b3
)
Fixed logic error
author
Roland Mas
<lolando@debian.org>
Wed, 14 Apr 2010 14:15:25 +0000
(14:15 +0000)
committer
Roland Mas
<lolando@debian.org>
Wed, 14 Apr 2010 14:15:25 +0000
(14:15 +0000)
gforge/common/include/User.class.php
patch
|
blob
|
history
diff --git
a/gforge/common/include/User.class.php
b/gforge/common/include/User.class.php
index
aaedbce
..
550767a
100644
(file)
--- a/
gforge/common/include/User.class.php
+++ b/
gforge/common/include/User.class.php
@@
-1515,7
+1515,7
@@
Enjoy the site.
$res = db_query_params ('SELECT role_id FROM user_group WHERE user_id=$1 AND group_id=$2',
array ($this->getID(),
$group->getID())) ;
- if (!$res) {
+ if (!$res
|| db_numrows($res) < 1
) {
$this->setError('User::getRole::DB - Could Not get role_id '.db_error());
return false;
}