mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed sql error without profile
This commit is contained in:
parent
595fabb232
commit
afa1eef63c
@ -83,8 +83,16 @@ function users_extension_main_god($god=true)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = db_get_all_rows_sql($sql);
|
$check_profile = db_get_row('tusuario_perfil', 'id_usuario', $config['id_user'], 'id_up');
|
||||||
|
if ($check_profile === false) {
|
||||||
|
return ui_print_error_message(
|
||||||
|
__('This user does not have any associated profile'),
|
||||||
|
'',
|
||||||
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$rows = db_get_all_rows_sql($sql);
|
||||||
if (empty($rows)) {
|
if (empty($rows)) {
|
||||||
$rows = [];
|
$rows = [];
|
||||||
echo "<div class='nf'>".__('No other users connected').'</div>';
|
echo "<div class='nf'>".__('No other users connected').'</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user