J'ai ce problème avec le script:Reece événement Calendrier
Notice: Undefined index: show_times dans C: \ wamp \ www \ ReeceCalendar_0.9 \ cal \ gatekeeper.php sur la ligne 192
Avis: Index indéfini: heures_24 dans C: \ wamp \ www \ ReeceCalendar_0.9 \ cal \ gatekeeper.php en ligne 194
Indication: Index indéfini: start_monday dans C: \ wamp \ www \ ReeceCalendar_0.9 \ cal \ gatekeeper. php on line 196
Indication: Indéfini index: anon_naming dans C: \ wamp \ www \ ReeceCalendar_0.9 \ ca l \ gatekeeper.php sur la ligne 198
et les codes pour chaque ligne sont les suivants:
192: if ($ d '[show_times'] == 'y') $ cal_options [ 'show_times'] = TRUE ; 194: if ($ d ['hours_24'] == 'y') $ cal_options ['hours_24'] = VRAI; 196: if ($ d ['start_monday'] == 'y') $ cal_options ['start_monday'] = VRAI; 198: if ($ d ['anon_naming'] == 'y') $ cal_options ['anon_naming'] = VRAI;
S'il vous plaît aidez-moi! Thnx
Cela ne fonctionne pas, je dois modifier cette ligne pas changer le php.ini :( – Marin
Ok, donc vous devez vérifier que la clé de tableau existe avant de vérifier sa valeur, comme: if (isset ($ d [ 'show_times']) && $ d ['show_times'] == 'y') $ cal_options ['show_times'] = VRAI; ou vous pouvez utiliser la fonction array_key_exists, comme: if (array_key_exists ('show_times', $ d) && $ d ['show_times'] == 'y') $ cal_options ['show_times'] = VRAI; –