Compatibility with PHP 5.4

This commit is contained in:
Manuel Cillero 2017-07-26 11:50:49 +02:00
parent f031b04ea4
commit 6630f264ef
3 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
* Field handler to display the number of new comments
*/
class nodecomment_handler_field_node_new_comments extends views_handler_field_node_new_comments {
function pre_render(&$values) {
function pre_render($values) {
global $user;
if (!$user->uid || empty($values)) {
return;