1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
  3. What happens when the XF 2.0 is out? See the discussion here: http://www.sonnb.com/threads/what-happens-when-xf-2-0-is-out.1146/
    Dismiss Notice

BUG Php 7.2 Support / Fixes

Discussion in 'XenGallery' started by oNdsen, Sep 28, 2018.

  1. oNdsen

    oNdsen Authorized Member Authorized

    Fix:
    library/sonnb/XenGallery/Model/Gallery.php
    Replace Line 223
    PHP:
    while(list($key,$value) = each($aPattern))
    with
    PHP:
    foreach($aPattern AS $key => $value)


    Fix:
    library/sonnb/XenGallery/WidgetRenderer/Album.php
    Replace Line 269
    PHP:
    array_walk($userIdscreate_function('&$userId, $key''$userId = trim($userId);'));
    with
    PHP:
    array_walk($userIds, function(&$userId$key) {
        
    $userId trim($userId);
    });
     

Share This Page