diff --git a/_sakura/components/Main.php b/_sakura/components/Main.php index 9958854..bc15ae9 100644 --- a/_sakura/components/Main.php +++ b/_sakura/components/Main.php @@ -155,7 +155,7 @@ class Main { $newsPost['udata'] = Users::getUser($newsPost['uid']); $newsPost['gdata'] = Users::getGroup($newsPost['udata']['group_main']); } - +print_r($newsPosts);print '
'; // Return posts return $newsPosts; diff --git a/_sakura/components/Users.php b/_sakura/components/Users.php index b62d5ce..8aa7e26 100644 --- a/_sakura/components/Users.php +++ b/_sakura/components/Users.php @@ -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;