// Fix return of AssociateTo method

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10995 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie committed 2011-12-06 14:59:00 +00:00
1 parent 943741871e
commit 0bf721b108
1 file changed
+1 -1
+1 -1
View File
@@ -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;
} }