PHP notice

Undefined variable: value

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/authentication.php(128)

116         }
117     }
118 
119     /**
120     * Logout user
121     */
122     public function logout()
123     {
124         /* Adding beforeLogout event */
125         $beforeLogout = new PluginEvent('beforeLogout');
126         App()->getPluginManager()->dispatchEvent($beforeLogout);
127         // Expire the CSRF cookie
128         $cookie = new CHttpCookie('cookie_name', $value);
129         $cookie->expire = time()-3600; 
130         Yii::app()->request->cookies['YII_CSRF_TOKEN'] = $cookie;
131         App()->user->logout();
132         App()->user->setFlash('loginmessage', gT('Logout successful.'));
133 
134         /* Adding afterLogout event */
135         $event = new PluginEvent('afterLogout');
136         App()->getPluginManager()->dispatchEvent($event);
137 
138         $this->getController()->redirect(array('/admin/authentication/sa/login'));
139     }
140 

Stack Trace

#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(Authentication, ReflectionMethod, array("sa" => "logout"))
094             $oMethod = new ReflectionMethod($this, $sDefault);
095         }
096 
097         // We're all good to go, let's execute it
098         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
099         return parent::runWithParamsInternal($this, $oMethod, $params);
100     }
101 
102     /**
103     * Some functions have different parameters, which are just an alias of the
104     * usual parameters we're getting in the url. This function just populates
#6
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(164): CController->run("authentication")
159                     $this->redirect(array('/admin/authentication/sa/login'));
160                 }
161 
162             }
163 
164             return parent::run($action);
165     }
166 
167     /**
168     * Routes all the actions to their respective places
169     *
#10
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): CApplication->run()
206         die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
207     }
208 }
209 
210 Yii::$enableIncludePath = false;
211 Yii::createApplication('LSYii_Application', $config)->run();
212 
213 /* End of file index.php */
214 /* Location: ./index.php */
2015-07-29 12:16:42 Apache/2.2.22 (Debian) Yii Framework/1.1.15