Skip to content

Commit

Permalink
Fixed issue #7316: Unable to import .lss file
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 20, 2013
1 parent 9cdb8ed commit 2fab6a0
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions application/helpers/common_helper.php
Expand Up @@ -6267,22 +6267,17 @@ function translateInsertansTags($newsid,$oldsid,$fieldnames)
$description=preg_replace('/'.$pattern.'/', $replacement, $description);
}

if (strcmp($description,$qentry['description']) !=0 ||
strcmp($gpname,$qentry['group_name']) !=0)
if (strcmp($description,$qentry['description']) !=0 || strcmp($gpname,$qentry['group_name']) !=0)
{
// Update Fields

$data = array(
'description' => $description,
'group_name' => $gpname
);

$where = array(
'gid' => $gid,
'language' => $language
);

Groups::model()->update($data,$where);
$oGroup = Groups::model()->findByAttributes($where);
$oGroup->description= $description;
$oGroup->group_name= $gpname;
$oGroup->save();

} // Enf if modified
} // end while qentry
Expand Down

0 comments on commit 2fab6a0

Please sign in to comment.