From c6512283404f71da00d49f714f7283679f00a5ae Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 6 May 2009 14:40:25 +0000 Subject: [PATCH] Don't die. --- ykval-common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ykval-common.php b/ykval-common.php index 11a22b4..82f90b0 100644 --- a/ykval-common.php +++ b/ykval-common.php @@ -35,7 +35,8 @@ function query($conn, $q) { debug('SQL query: ' . $q); $result = mysql_query($q, $conn); if (!$result) { - die("SQL query error: " . mysql_error()); + debug("SQL query error: " . mysql_error()); + return; } return $result; }