From 6b1b118deea8afd2921c7b29835879d677d99e74 Mon Sep 17 00:00:00 2001 From: megan_w Date: Wed, 19 Mar 2008 10:03:40 +0000 Subject: [PATCH] KTS-3181 "Scheduler: Migration process fails" Fixed. Changed the function to return the default if its there rather than pear error. --- lib/util/ktutil.inc | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index d9c6f58..77c24e0 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -925,6 +925,9 @@ class KTUtil { ); $res = DBUtil::getOneResultKey($aQuery, 'value'); if (PEAR::isError($res)) { + if(!is_null($default)){ + return $default; + } return PEAR::raiseError(sprintf(_kt('Unable to retrieve system setting %s: %s'), $name, $res->getMessage())); } -- libgit2 0.21.4