This commit is contained in:
flash 2015-03-30 18:09:28 +02:00
parent 6c298a5bcf
commit fed8e81fb9

View file

@ -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 @@ class Users {
// 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;