From b7da7b856b92f7b22a3c88e884dc1f6f0efaeb1f Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Fri, 9 Nov 2012 13:47:12 +0000 Subject: Closes Issue #58 Create then save a default empty row w/Paris --- idiorm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'idiorm.php') diff --git a/idiorm.php b/idiorm.php index 710b913..cd656fe 100644 --- a/idiorm.php +++ b/idiorm.php @@ -603,7 +603,9 @@ * separated by commas. Eg "?, ?, ?" */ protected function _create_placeholders($number_of_placeholders) { - return join(", ", array_fill(0, $number_of_placeholders, "?")); + if($number_of_placeholders) { + return join(", ", array_fill(0, $number_of_placeholders, "?")); + } } /** -- cgit v1.2.3