Commit 86ad14613552df49dfb705cd4984e8fb41810356

Authored by Neil Blakey-Milner
1 parent 7cf7f16c

Consistently use iId.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3671 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 3 deletions
lib/ktentity.inc
@@ -122,7 +122,7 @@ class KTEntity { @@ -122,7 +122,7 @@ class KTEntity {
122 return PEAR::raiseError("No such ID: $iId"); 122 return PEAR::raiseError("No such ID: $iId");
123 } 123 }
124 if (count($res) > 1) { 124 if (count($res) > 1) {
125 - return PEAR::raiseError("Multiple matches for ID: $iID"); 125 + return PEAR::raiseError("Multiple matches for ID: $iId");
126 } 126 }
127 $vk = array_flip($this->_aFieldToSelect); 127 $vk = array_flip($this->_aFieldToSelect);
128 $aLoadInfo = array(); 128 $aLoadInfo = array();
@@ -271,8 +271,8 @@ class KTEntityUtil { @@ -271,8 +271,8 @@ class KTEntityUtil {
271 } 271 }
272 272
273 $aRet = array(); 273 $aRet = array();
274 - foreach ($aIDs as $iID) {  
275 - $aRet[] =& call_user_func(array($sClassName, 'get'), $iID); 274 + foreach ($aIDs as $iId) {
  275 + $aRet[] =& call_user_func(array($sClassName, 'get'), $iId);
276 } 276 }
277 return $aRet; 277 return $aRet;
278 } 278 }