私のサイトで113行目のこのエラーが発生しましたが、これがどうして起こっているのか、コードを修正する必要があるのか分かりません。下のスニペットを参照してください。警告:それぞれの引数が無効です
// Return the CDN object by name.
// If a section is defined. Only returns the object if it exists in that section
// if "Section" is not defined; returns an object if it exists in any section.
// Returns FALSE if not found.
public function CDN($name='',$section=''){
if (empty($name)) return FALSE;
else
foreach ($this->CDNS as $CDN){
if (!empty($section)) {
if (stripos($name, $CDN->Name()) !== FALSE && ($CDN->Position() == $section)) return $CDN;
}
else
if (stripos($name, $CDN->Name()) !== FALSE) return $CDN;
}
return FALSE;
}
配列$ this-> CDNSは空です。 – Pupil
助けてくれてありがとう。これを修正するにはどうすればよいですか? – sarkism
それに何かを入れますか? – DevDonkey