From: <var...@us...> - 2016-02-12 11:35:44
|
Revision: 9803 http://sourceforge.net/p/phpwiki/code/9803 Author: vargenau Date: 2016-02-12 11:35:42 +0000 (Fri, 12 Feb 2016) Log Message: ----------- Add variable initialisation Modified Paths: -------------- trunk/lib/main.php Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2016-02-11 20:05:46 UTC (rev 9802) +++ trunk/lib/main.php 2016-02-12 11:35:42 UTC (rev 9803) @@ -1004,6 +1004,9 @@ if ($userid = $this->getCookieVar(getCookieName())) { if (!empty($userid) and substr($userid, 0, 2) != 's:') { + if (!isset($this->_user)) { + $this->_user = new stdClass(); + } $this->_user->_authhow = 'cookie'; return $userid; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |