From: Alan R. <ala...@mn...> - 2011-09-16 16:26:46
|
Hello, I'm not sure if I should open a bug report or what. I was getting the following errors in my Apache error log: [Fri Sep 16 11:02:44 2011] [error] [client 199.17.248.25] PHP Notice: Undefined offset: 1 in /srv/vufind/web/sys/Logger.php on line 134, referer: https://bridgedev.mnpals.net/vufind/Record/.b31174590 Of course this had to do with the following line from sys/Logger.php: list($logType, $currentVerbosity) = explode('-', $setting); and according to http://us3.php.net/manual/en/function.explode.php#99841 the error is because the number of variables in the list are more than the number of values returned by explode. According to their suggestion I made the following change: list($logType, $currentVerbosity) = explode('-', $setting . '-'); Errors gone. al -- Alan Rykhus PALS, A Program of the Minnesota State Colleges and Universities (507)389-1975 ala...@mn... "It's hard to lead a cavalry charge if you think you look funny on a horse" ~ Adlai Stevenson |