Removing specification of error reporting in actions
This commit is contained in:
parent
a376e18a90
commit
8981ca9cee
@ -78,7 +78,6 @@ if (!$poll) {
|
||||
$comments = $pollService->allCommentsByPollId($poll_id);
|
||||
}
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
$smarty->error_reporting = E_ALL & ~E_NOTICE;
|
||||
$smarty->assign('comments', $comments);
|
||||
$comments_html = $smarty->fetch('part/comments_list.tpl');
|
||||
|
@ -88,8 +88,6 @@ if (is_null($message)) {
|
||||
$result = true;
|
||||
}
|
||||
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
$smarty->error_reporting = E_ALL & ~E_NOTICE;
|
||||
|
||||
$response = array('result' => $result, 'message' => $message);
|
||||
|
Loading…
Reference in New Issue
Block a user