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['udata'] = Users::getUser($newsPost['uid']);
|
||||||
$newsPost['gdata'] = Users::getGroup($newsPost['udata']['group_main']);
|
$newsPost['gdata'] = Users::getGroup($newsPost['udata']['group_main']);
|
||||||
}
|
}
|
||||||
|
print_r($newsPosts);print '<br />';
|
||||||
// Return posts
|
// Return posts
|
||||||
return $newsPosts;
|
return $newsPosts;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Users {
|
||||||
|
|
||||||
// Execute query
|
// Execute query
|
||||||
$user = Database::fetch('users', false, ['id' => [$id, '=']]);
|
$user = Database::fetch('users', false, ['id' => [$id, '=']]);
|
||||||
print_r($user);
|
|
||||||
// Return false if no user was found
|
// Return false if no user was found
|
||||||
if(empty($user))
|
if(empty($user))
|
||||||
return false;
|
return false;
|
||||||
|
@ -35,7 +35,7 @@ print_r($user);
|
||||||
|
|
||||||
// Execute query
|
// Execute query
|
||||||
$group = Database::fetch('groups', false, ['id' => [$id, '=']]);
|
$group = Database::fetch('groups', false, ['id' => [$id, '=']]);
|
||||||
print_r($group);
|
|
||||||
// Return false if no group was found
|
// Return false if no group was found
|
||||||
if(empty($group))
|
if(empty($group))
|
||||||
return false;
|
return false;
|
||||||
|
|
Reference in a new issue