# HG changeset patch # User Robert Boland # Date 1546609680 18000 # Node ID b058736bc9ad9d58ef3385049608270cb24e3b29 # Parent 1bb0bc3d306a32c8c77f475698585bd5bed3a9cc fix old :-( preg bug diff -r 1bb0bc3d306a -r b058736bc9ad php/read/getBookDetails.php --- a/php/read/getBookDetails.php Fri Jan 04 08:45:42 2019 -0500 +++ b/php/read/getBookDetails.php Fri Jan 04 08:48:00 2019 -0500 @@ -230,7 +230,7 @@ } //echo $out; $mm=array(); - if (preg_match("",$out,$mm)) { + if (preg_match("//",$out,$mm)) { $xml = new SimpleXMLElement($out); $resName=$xml->getName(); $code=$xml->Error->Code; diff -r 1bb0bc3d306a -r b058736bc9ad us/index.php --- a/us/index.php Fri Jan 04 08:45:42 2019 -0500 +++ b/us/index.php Fri Jan 04 08:48:00 2019 -0500 @@ -143,7 +143,7 @@ $bookDetails = getAmazonDet($isbn,1,'us'); $bookXML = new SimpleXMLElement($bookDetails); // HST added this - if (preg_match("",$bookDetails)) { + if (preg_match("//",$bookDetails)) { $resName=$bookXML->getName(); $code=$bookXML->Error->Code; file_put_contents('/var/ywww/debug/phpDebug',"Losing 3: $resName, ". @@ -218,7 +218,7 @@ $bookLDetails = getAmazonDet($linkedISBN,1,'us'); $bookLXML = new SimpleXMLElement($bookLDetails); // HST added this - if (preg_match("",$bookLDetails)) { + if (preg_match("//",$bookLDetails)) { $resName=$bookLXML->getName(); $code=$bookLXML->Error->Code; file_put_contents('/var/ywww/debug/phpDebug',"Losing 2: $resName, ".