// Fix return of AssociateTo method

This commit is contained in:
rMalie
2011-12-06 14:59:00 +00:00
parent 51b31cc9cd
commit 1252a62d10
+1 -1
View File
@@ -864,7 +864,7 @@ abstract class ObjectModelCore
}
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;
}