function commentDelete($id) { global $group_name; $p = new PeoplePage($group_name); $c = $p->deleteComment($id); if ($c) { return 1; } else { return 0; } // false }