From 357263a20b009854ecce78937589e1b8a5a40961 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 12 Jan 2010 06:43:22 +0000 Subject: [PATCH] Some extra debug info added while fixing northern bc --- admin/award_download.php | 2 +- admin/curl.inc.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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);