diff options
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, "?")); + } } /** |