b
This commit is contained in:
parent
fed8e81fb9
commit
0c730e0872
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ class Main {
|
|||
$newsPost['udata'] = Users::getUser($newsPost['uid']);
|
||||
$newsPost['gdata'] = Users::getGroup($newsPost['udata']['group_main']);
|
||||
}
|
||||
|
||||
print_r($newsPosts);print '<br />';
|
||||
// Return posts
|
||||
return $newsPosts;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Users {
|
|||
|
||||
// Execute query
|
||||
$user = Database::fetch('users', false, ['id' => [$id, '=']]);
|
||||
print_r($user);
|
||||
|
||||
// Return false if no user was found
|
||||
if(empty($user))
|
||||
return false;
|
||||
|
@ -35,7 +35,7 @@ print_r($user);
|
|||
|
||||
// Execute query
|
||||
$group = Database::fetch('groups', false, ['id' => [$id, '=']]);
|
||||
print_r($group);
|
||||
|
||||
// Return false if no group was found
|
||||
if(empty($group))
|
||||
return false;
|
||||
|
|
Reference in a new issue