diff --git a/admin/award_download.php b/admin/award_download.php index d93ae0e..cb341a2 100644 --- a/admin/award_download.php +++ b/admin/award_download.php @@ -64,7 +64,7 @@ case 'check': $keys=array_keys($data); if(!array_key_exists('awards', $data)) { echo error(i18n("Invalid XML response. Expecting '%1' in '%2'",array("awards",join(',',array_keys($data))))); -// echo "response=".print_r($datastream); +// echo "response=".print_r($data); return; } diff --git a/admin/curl.inc.php b/admin/curl.inc.php index 9f5d549..81dccb3 100644 --- a/admin/curl.inc.php +++ b/admin/curl.inc.php @@ -50,9 +50,12 @@ xmlCreateRecurse($data); $str = $output; break; + default: + echo "Unknown fair type {$fair['type']}"; + break; } -// echo "
Curl Send: $str
"; +// echo "
Curl Send: (type:{$fair['type']}=>$url) $str
"; $ch = curl_init(); /// initialize a cURL session curl_setopt ($ch, CURLOPT_URL, $url);