Skip to content

Commit

Permalink
fixed #6961: CDbException unbuffered queries active when accessing su…
Browse files Browse the repository at this point in the history
…rvey or db analysis

dev: seems that i only needed to remove old code that should have been removed anyway... merge error?
  • Loading branch information
mennodekker committed Nov 26, 2012
1 parent 0ddb2ac commit 160c5d2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions application/controllers/admin/checkintegrity.php
Expand Up @@ -637,8 +637,8 @@ protected function _checkintegrity()
$aFullOldSIDs[$iSurveyID][] = $sTable;
}
$aOldSIDs = array_unique($aOldSIDs);
$sQuery = 'SELECT sid FROM {{surveys}} ORDER BY sid';
$oResult = dbExecuteAssoc($sQuery) or safeDie('Couldn\'t get unique survey ids');
//$sQuery = 'SELECT sid FROM {{surveys}} ORDER BY sid';
//$oResult = dbExecuteAssoc($sQuery) or safeDie('Couldn\'t get unique survey ids');
$surveys = Survey::model()->findAll();
if (Survey::model()->hasErrors()) safeDie(Survey::model()->getError());
$aSIDs = array();
Expand Down Expand Up @@ -718,10 +718,6 @@ protected function _checkintegrity()
{
$aSIDs[] = $survey['sid'];
}
foreach ($oResult->readAll() as $aRow)
{
$aTokenSIDs[] = $aRow['sid'];
}
foreach ($aOldTokenSIDs as $iOldTokenSID)
{
if (!in_array($iOldTokenSID, $aTokenSIDs)) {
Expand Down

0 comments on commit 160c5d2

Please sign in to comment.