Skip to content

Commit

Permalink
Merge pull request #15 from Packet-Clearing-House/dev-14
Browse files Browse the repository at this point in the history
fix sizeof() parens
  • Loading branch information
Ths2-9Y-LqJt6 authored Jun 27, 2018
2 parents 1d3319a + 85d2e51 commit d3bf56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Faux-Logs-Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function generate_lines($iterations){
// generate log entries
$count = 1;
while ($count <= $iterations) {
if (is_array($this->config['log']) && sizeof($this->config['log'] > 0)) {
if (is_array($this->config['log']) && sizeof($this->config['log']) > 0) {
// generate pre cooked values
if(isset($this->config['pre']) && is_array($this->config['pre']) && sizeof($this->config['pre'] > 0)){
if(isset($this->config['pre']) && is_array($this->config['pre']) && sizeof($this->config['pre']) > 0){
$this->preCooked = array();
foreach ($this->config['pre'] as $fieldConfig){
$this->preCooked[] = $this->generate_field($fieldConfig);
Expand Down

0 comments on commit d3bf56a

Please sign in to comment.