开发者

Calendar event Reece Calendar

开发者 https://www.devze.com 2022-12-31 18:58 出处:网络
I have downloaded a script Reece Calendar from internet,I finally connected it with database but I have some errors in it!

I have downloaded a script Reece Calendar from internet,I finally connected it with database but I have some errors in it!

Can you please help me?

The first errore is:

Undefined index: timeout in C:\wamp\www\ReeceCalendar_0.9\cal\gatekeeper.php on line 180

and the code in this line is:

if($d['timeout']!="") $cal_options['timeout'] = $d['time开发者_如何学Cout'];


It means that the index 'timeout' does not exist in array $d. More specifically, $d['timeout'] is not set before the if statement attempt to perform its comparison with "".


Unless $d['timeout'] really should exist, the line ought to be changed to:

if (array_key_exists("timeout", $d) && $d['timeout'] != "")
    $cal_options['timeout'] = $d['timeout'];


I think you should disable your php warnings from php.ini ... they are not really errors, just warning, and they can get annoying.

error_reporting  = E_ALL & ~E_NOTICE
display_errors = On
0

精彩评论

暂无评论...
验证码 换一张
取 消