Skip to content

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
The old ones were wrong, and did nothing.
  • Loading branch information
waldoj committed Jan 25, 2018
1 parent 51e9035 commit 2ffa5b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/save_chyrons.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function format_time($secs)
$invalid = 0;
foreach (str_split($bill) as $character)
{
if (ord($str) > 127)
if (ord($character) > 127)
{
$invalid++;
}
Expand All @@ -186,7 +186,7 @@ function format_time($secs)
$invalid = 0;
foreach (str_split($legislator) as $character)
{
if (ord($str) > 127)
if (ord($character) > 127)
{
$invalid++;
}
Expand All @@ -195,8 +195,6 @@ function format_time($secs)
{
unset($legislator);
}

}

# If the legislator chyron lacks three consecutive letters, it's probably not a
# legislator (or, if it is, we'll never figure it out).
Expand Down

0 comments on commit 2ffa5b4

Please sign in to comment.