Title: PHP Notices and Session Warning
Last modified: August 21, 2016

---

# PHP Notices and Session Warning

 *  [kaynenh](https://wordpress.org/support/users/kaynenh/)
 * (@kaynenh)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-notices-and-session-warning/)
 * (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/](http://wordpress.org/extend/plugins/camera-slideshow/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/camera-slideshow_d3dcd0.svg)
 * [Camera slideshow](https://wordpress.org/plugins/camera-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/camera-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/camera-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/camera-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/camera-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/camera-slideshow/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kaynenh](https://wordpress.org/support/users/kaynenh/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/php-notices-and-session-warning/)
 * Status: not resolved