summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2012-11-09 13:47:12 +0000
committerSimon Holywell <[email protected]>2012-11-09 13:47:12 +0000
commitb7da7b856b92f7b22a3c88e884dc1f6f0efaeb1f (patch)
tree67e64988b43995583b459e36a34cbc7d8dcee5d5 /idiorm.php
parentc954f22aebfdb750967827fee033e35a9151c842 (diff)
Closes Issue #58 Create then save a default empty row w/Paris
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php4
1 files changed, 3 insertions, 1 deletions
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, "?"));
+ }
}
/**