In line 35 of products/photocrati_nextgen/modules/nextgen_basic_singlepic/package.module.nextgen_basic_singlepic.php, you’ll find this code:
$image = array_shift($displayed_gallery->get_entities(1, FALSE, FALSE, 'included'));
This causes the warning “Only variables should be passed by reference”.
I think the code should be changed to storing the return value of get_entities into a temporary variable and pass this variable to array_shift.
- The topic ‘PHP warning in package.module.nextgen_basic_singlepic.php’ is closed to new replies.