From 4d53da6cf759e14c8231957b0b106fe3db4c4bc4 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 3 Feb 2010 19:45:30 +0100 Subject: [PATCH] Use a more useful error handling. --- kronolith/scripts/upgrades/convert_to_utc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/scripts/upgrades/convert_to_utc.php b/kronolith/scripts/upgrades/convert_to_utc.php index 099c0a5ed..ddd276e7f 100755 --- a/kronolith/scripts/upgrades/convert_to_utc.php +++ b/kronolith/scripts/upgrades/convert_to_utc.php @@ -9,7 +9,7 @@ require_once dirname(__FILE__) . '/../../lib/Application.php'; Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true)); /* Prepare DB stuff. */ -PEAR::staticPushErrorHandling(PEAR_ERROR_DIE); +PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, create_function('$e', 'echo $e->toString()."\n";exit;')); $db = DB::connect($conf['sql']); $result = $db->query('SELECT event_title, event_id, event_creator_id, event_start, event_end, event_allday, event_recurenddate FROM ' . $conf['calendar']['params']['table'] . ' ORDER BY event_creator_id'); $stmt = $db->prepare('UPDATE kronolith_events SET event_start = ?, event_end = ?, event_recurenddate = ? WHERE event_id = ?'); -- 2.11.0