Commit cca0403db5426c1310a554eb232a4e728d22e41b

Authored by nbm
1 parent a5aa1008

If the table isn't mapped, just return the table name given.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5227 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 4 deletions
lib/util/ktutil.inc
... ... @@ -356,11 +356,11 @@ class KTUtil {
356 356 * respecting the administrator's choice of table naming.
357 357 */
358 358 function getTableName($sTable) {
359   - $sTable = $sTable . "_table";
360   - if (isset($GLOBALS['default']->$sTable)) {
361   - return $GLOBALS['default']->$sTable;
  359 + $sDefaultsTable = $sTable . "_table";
  360 + if (isset($GLOBALS['default']->$sDefaultsTable)) {
  361 + return $GLOBALS['default']->$sDefaultsTable;
362 362 }
363   - return PEAR::raiseError('Could not find table: ' . $sTable);
  363 + return $sTable;
364 364 }
365 365 // }}}
366 366  
... ...