Skip to content

Commit

Permalink
Fixed issue #6092: Fatal error: Allowed memory size of .. when editin…
Browse files Browse the repository at this point in the history
…g a result
  • Loading branch information
c-schmitz committed May 18, 2012
1 parent 9bd2dad commit ae829ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/controllers/admin/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,12 @@ function index($sa = null)
else
{
$value=Yii::app()->request->getPost($validAttribute['name']);

if ($validAttribute['name']=='multiflexible_step' && trim($value)!='') {
$value=floatval($value);
if ($value==0) $value=1;
};

$result = Question_attributes::model()->findAllByAttributes(array('attribute'=>$validAttribute['name'], 'qid'=>$qid));
if (count($result)>0)
{
Expand Down

0 comments on commit ae829ef

Please sign in to comment.