• (Update: edited code format slightly)

    Plugin works great but when I was doing some debugging for another issue, I noticed that there were php notices stemming from line 46 in camera_functions.php. I just did a check for $current_user and that fixed the issue. Here’s the code:

    if ($current_user) {
      if ($current_user->display_name == 'pixtest') {
        if(isset($_SESSION[$name])){
          if($_SESSION[$name]=='') {
            return $return;
          } else {
            return $_SESSION[$name];
          }
        } else {
          return $return;
        }
      } else {
        return $return;
      }
    }
    else {
      return $return;
    }

    http://wordpress.org/extend/plugins/camera-slideshow/

The topic ‘PHP Notices and Session Warning’ is closed to new replies.