From 6ef1f7113cf3759f88453f16a5011d13a7616257 Mon Sep 17 00:00:00 2001 From: Ralf Becker <ralfbecker@outdoor-training.de> Date: Fri, 12 Nov 2004 07:39:07 +0000 Subject: [PATCH] killed a warning if no table-definition, as requested by Cornelius Weiss --- phpgwapi/inc/class.db.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.db.inc.php b/phpgwapi/inc/class.db.inc.php index f6b8c56382..3b608c1658 100644 --- a/phpgwapi/inc/class.db.inc.php +++ b/phpgwapi/inc/class.db.inc.php @@ -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;