comparison php/read/getBookDetails.php @ 58:39600878ff93

prefer empty result to no result at all
author Charlie Root
date Sun, 09 Jun 2019 06:48:35 -0400
parents dd93cb4b77ad
children
comparison
equal deleted inserted replaced
57:7f90ac957713 58:39600878ff93
304 $output .= "<Genre2>" . htmlspecialchars($rows["Genre2"]) . "</Genre2>"; 304 $output .= "<Genre2>" . htmlspecialchars($rows["Genre2"]) . "</Genre2>";
305 $output .= "<Genre3>" . htmlspecialchars($rows["Genre3"]) . "</Genre3>"; 305 $output .= "<Genre3>" . htmlspecialchars($rows["Genre3"]) . "</Genre3>";
306 $output .= "<ProductGroup>Book</ProductGroup>"; 306 $output .= "<ProductGroup>Book</ProductGroup>";
307 } 307 }
308 else { 308 else {
309 # Causes looping behaviour from client :-(
310 dl("gBD: no DB info either, bailing\n"); 309 dl("gBD: no DB info either, bailing\n");
311 return; 310 # try to avoid looping behaviour from client :-(
312 } 311 }
313 } 312 }
314 } 313 }
315 $output .= "</BookDetails>"; 314 $output .= "</BookDetails>";
316 315