Skip to content

Commit

Permalink
Fixed issue #6351: Error when deleting a user
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 26, 2012
1 parent a6b43b4 commit 59d567c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/useraction.php
Expand Up @@ -223,7 +223,7 @@ function deluser()
}

if ($action == "finaldeluser") {
$this->deleteFinalUser($ownerUser, $transfer_surveys_to);
$aViewUrls=$this->deleteFinalUser($ownerUser, $transfer_surveys_to);
}
else
{
Expand All @@ -246,7 +246,7 @@ function deluser()
}
}

$this->_renderWrappedTemplate('user', $aViewUrls);
return $aViewUrls;
}

function deleteFinalUser($result, $transfer_surveys_to)
Expand Down
15 changes: 2 additions & 13 deletions index.php
@@ -1,17 +1,5 @@
<?php

/*
*---------------------------------------------------------------
* PHP ERROR REPORTING LEVEL
*---------------------------------------------------------------
*
* By default CI runs with error reporting set to ALL. For security
* reasons you are encouraged to change this to 0 when your site goes live.
* For more info visit: http://www.php.net/error_reporting
*
*/
error_reporting(E_ALL);

/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
Expand Down Expand Up @@ -157,9 +145,10 @@
}

$aSettings= include(APPPATH.'config'.DIRECTORY_SEPARATOR.'config.php');
if ($aSettings['config']['debug']>0)
if (isset($aSettings['config']['debug']) && $aSettings['config']['debug']>0)
{
define('YII_DEBUG', true);
error_reporting(E_ALL);
}
else
{
Expand Down

0 comments on commit 59d567c

Please sign in to comment.