diff php/read/getBookDetails.php @ 10:5aa24c984a3b

if no code show entire response
author Henry S. Thompson <ht@markup.co.uk>
date Sat, 18 Feb 2017 12:28:36 +0000
parents 232deb0b066a
children 385ddd7c4b55 ae1459564f66
line wrap: on
line diff
--- a/php/read/getBookDetails.php	Sat Feb 18 11:38:36 2017 +0000
+++ b/php/read/getBookDetails.php	Sat Feb 18 12:28:36 2017 +0000
@@ -222,6 +222,9 @@
 		  else {
 		    file_put_contents('/var/ywww/debug/phpDebug',"parms bd: ".
 				      print_r($parameters,TRUE)."\n",FILE_APPEND);
+		    if ($code=="") {
+		      file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND);
+		    }
 		  }
 		}
 		else {