mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-09 09:56:27 +00:00
Fix "Undefined index" errors
This commit is contained in:
@@ -188,6 +188,8 @@ $data_mapping = array(
|
||||
'server' => '_SERVER',
|
||||
);
|
||||
|
||||
$data = $$data_mapping[$test];
|
||||
$value = isset($data[$key]) ? $data[$key] : '';
|
||||
echo $value;
|
||||
if (!empty($test)) {
|
||||
$data = $$data_mapping[$test];
|
||||
$value = isset($data[$key]) ? $data[$key] : '';
|
||||
echo $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user