Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Cast padding to int to prevent PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
steverowling committed Jun 6, 2016
1 parent a1b8448 commit 69fefb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fieldtypes/IncrementFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function prepValue($value)
}

// Pad zeroes
$value = str_pad($value, $settings->padding, '0', STR_PAD_LEFT);
$value = str_pad($value, (int) $settings->padding, '0', STR_PAD_LEFT);

// Add prefix
$value = craft()->templates->renderObjectTemplate($settings->prefix, $this->element).$value;
Expand Down

0 comments on commit 69fefb9

Please sign in to comment.