killed a warning if no table-definition, as requested by Cornelius Weiss

This commit is contained in:
Ralf Becker 2004-11-12 07:39:07 +00:00
parent 5be4d30994
commit 6ef1f7113c

View File

@ -1189,7 +1189,7 @@
break;
case 'mysql':
// use replace if primary keys are included
if (count(array_intersect(array_keys($where),$table_def['pk'])) == count($table_def['pk']))
if (count(array_intersect(array_keys($where),(array)$table_def['pk'])) == count($table_def['pk']))
{
$cmd = 'REPLACE';
break;