From: joel s. <fox...@gm...> - 2006-03-06 19:39:39
|
I have applied that and confirmed that it fixes this problem. Thanks Reini ! Joel On 3/4/06, Reini Urban <ru...@x-...> wrote: > > joel schaubert schrieb: > > I'm getting an error page under specific conditions > > > > Wiki phpwiki-1.3.12_rc1 > > os gentoo > > database file > > > > After being logged in as admin, then I click the button to "sign out". > > Then I see this error on url /index.php/HomePage > > > > *Fatal error*: Cannot access empty property in > > */var/www/localhost/htdocs/tech/wiki/lib/WikiUserNew.php* on line *1842 > > > > *Is this a known bug? > > Not yet, thanks. Very good catch! Wonder why this slipped through and > got undetected for some years. In WikiUser.php I did it differently. > > > for context, line 1842 of WikiUserNew.php is the first uncommented lin= e > > shown here > > if (!isset($pref->{$value}) or $pref->{$value} !=3D > > $pref->default_value) { > > Fix: > if ((!$value and $pref->default_value) > or ($value and !isset($pref->$value)) > or ($value and ($pref->$value !=3D $pref->default_value))) > { > > -- > Reini Urban > http://phpwiki.org/ > http://helsinki.at/ http://spacemovie.mur.at/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > |