We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3c4745d0 authored by jurgbohn's avatar jurgbohn

Fixed reportError in gobbler

parent f30dc8c7
......@@ -34,6 +34,7 @@ if (PEAR::isError($mdb2)) {
function reportError($text, $data) {
// make a fresh connection
global $connect_string;
$mdbe = MDB2::connect($connect_string);
if (PEAR::isError($mdbe)) {
die($mdbe->getMessage());
......
......@@ -135,7 +135,7 @@ for($i = 0; $i < count($_POST['a']); $i++) {
$res =& $mdb2->exec($sql);
if(PEAR::isError($res)) {
$msg = $res->getMessage();
// reportError($msg, $sql);
reportError($msg, $sql);
die("FAILED " . $msg . "\nError has been reported to site administrators.\n");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment