Mercurial > hg > ywww
diff php/read/getBookDetails.php @ 28:b058736bc9ad
fix old :-( preg bug
author | Robert Boland <robert@markup.co.uk> |
---|---|
date | Fri, 04 Jan 2019 08:48:00 -0500 |
parents | 828895488948 |
children | 5cae8d572998 |
line wrap: on
line diff
--- 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("<Error>",$out,$mm)) { + if (preg_match("/<Error>/",$out,$mm)) { $xml = new SimpleXMLElement($out); $resName=$xml->getName(); $code=$xml->Error->Code;