// Fix return of AssociateTo method
This commit is contained in:
1 parent
51b31cc9cd
commit
1252a62d10
1 file changed
+1
-1
@@ -864,7 +864,7 @@ abstract class ObjectModelCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($sql))
|
if (!empty($sql))
|
||||||
return Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.$this->table.'_'.$type.'` (`'.$this->identifier.'`, `id_'.$type.'`) VALUES '.rtrim($sql,','));
|
return (bool)Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.$this->table.'_'.$type.'` (`'.$this->identifier.'`, `id_'.$type.'`) VALUES '.rtrim($sql,','));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user