From 5a609ab5da9c4dc82b9a97c9db0f5dcf93479e9c Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 10 Apr 2002 18:30:33 +0000 Subject: [PATCH] Fix for a call by reference. --- phpgwapi/inc/class.schema_proc_mysql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.schema_proc_mysql.inc.php b/phpgwapi/inc/class.schema_proc_mysql.inc.php index a06ae1f929..dc72fc7280 100644 --- a/phpgwapi/inc/class.schema_proc_mysql.inc.php +++ b/phpgwapi/inc/class.schema_proc_mysql.inc.php @@ -119,7 +119,7 @@ } /* Inverse of above, convert sql column types to array info */ - function rTranslateType($sType, $iPrecision = 0, $iScale = 0, &$sTranslated) + function rTranslateType($sType, $iPrecision = 0, $iScale = 0, &$sTranslated = '') { $sTranslated = ''; if ($sType == 'int' || $sType == 'tinyint' || $sType == 'smallint' || $sType == 'bigint') @@ -245,7 +245,7 @@ $prec = $scales[0]; $scale = $scales[1]; } - $this->rTranslateType($colinfo[0], $prec, $scale, &$type); + $this->rTranslateType($colinfo[0], $prec, $scale, $type); if ($oProc->m_odb->f(2) == 'YES') {