getting indexed by search engines with an error in case of DB failure.
+libdiogenes 0.9.19
+ * improved - (globals) set HTTP status code 500 if database connection fails
+
libdiogenes 0.9.18
* improved - (mime) recognise MIME type of OMA DRM content
* added - (mime) add function to retrieve a multipart content's boundary
{
$db = new DiogenesDatabase($this->dbdb, $this->dbhost, $this->dbuser, $this->dbpwd);
if (!$db->connect_id)
+ {
+ if (!headers_sent())
+ header("HTTP/1.0 500 Internal Server Error");
die("Could not connect to database (".mysql_error().")");
+ }
$this->db = $db;
}