From 0c730e08724e324bca27bfedb210288fb2ce18dc Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 30 Mar 2015 18:10:33 +0200 Subject: [PATCH] b --- _sakura/components/Main.php | 2 +- _sakura/components/Users.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;