Commit 6b1b118deea8afd2921c7b29835879d677d99e74
1 parent
bcf3bfb8
KTS-3181
"Scheduler: Migration process fails" Fixed. Changed the function to return the default if its there rather than pear error. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8282 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
lib/util/ktutil.inc
| ... | ... | @@ -925,6 +925,9 @@ class KTUtil { |
| 925 | 925 | ); |
| 926 | 926 | $res = DBUtil::getOneResultKey($aQuery, 'value'); |
| 927 | 927 | if (PEAR::isError($res)) { |
| 928 | + if(!is_null($default)){ | |
| 929 | + return $default; | |
| 930 | + } | |
| 928 | 931 | return PEAR::raiseError(sprintf(_kt('Unable to retrieve system setting %s: %s'), $name, $res->getMessage())); |
| 929 | 932 | } |
| 930 | 933 | ... | ... |