diff options
author | Simon Holywell <[email protected]> | 2012-11-09 13:47:12 +0000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2012-11-09 13:47:12 +0000 |
commit | b7da7b856b92f7b22a3c88e884dc1f6f0efaeb1f (patch) | |
tree | 67e64988b43995583b459e36a34cbc7d8dcee5d5 /idiorm.php | |
parent | c954f22aebfdb750967827fee033e35a9151c842 (diff) |
Closes Issue #58 Create then save a default empty row w/Paris
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, "?")); + } } /** |