From cca0403db5426c1310a554eb232a4e728d22e41b Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 12 Apr 2006 09:34:28 +0000 Subject: [PATCH] If the table isn't mapped, just return the table name given. --- lib/util/ktutil.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index 6dc78fa..123398e 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -356,11 +356,11 @@ class KTUtil { * respecting the administrator's choice of table naming. */ function getTableName($sTable) { - $sTable = $sTable . "_table"; - if (isset($GLOBALS['default']->$sTable)) { - return $GLOBALS['default']->$sTable; + $sDefaultsTable = $sTable . "_table"; + if (isset($GLOBALS['default']->$sDefaultsTable)) { + return $GLOBALS['default']->$sDefaultsTable; } - return PEAR::raiseError('Could not find table: ' . $sTable); + return $sTable; } // }}} -- libgit2 0.21.4