Fixing style errors.
This commit is contained in:
parent
92319464d8
commit
5e02548abb
@ -217,7 +217,7 @@ class SkillRank extends CommonObject
|
|||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
$sqlfilter = 'fk_object='.((int)$this->fk_object)." AND objecttype='".$this->db->escape($this->objecttype)."' AND fk_skill = ".((int) $this->fk_skill);
|
$sqlfilter = 'fk_object='.((int) $this->fk_object)." AND objecttype='".$this->db->escape($this->objecttype)."' AND fk_skill = ".((int) $this->fk_skill);
|
||||||
$alreadyLinked = $this->fetchAll('ASC', 'rowid', 0, 0, array('customsql' => $sqlfilter));
|
$alreadyLinked = $this->fetchAll('ASC', 'rowid', 0, 0, array('customsql' => $sqlfilter));
|
||||||
if (!empty($alreadyLinked)) {
|
if (!empty($alreadyLinked)) {
|
||||||
$this->error = $langs->trans('ErrSkillAlreadyAdded');
|
$this->error = $langs->trans('ErrSkillAlreadyAdded');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user