summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
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, "?"));
+ }
}
/**