var empty check did not function as expected.

made script executable
This commit is contained in:
Eric Helgeson 2009-08-20 14:25:50 -05:00
parent 0535b43944
commit a8d3545182
1 changed files with 1 additions and 1 deletions

2
scripts/fixup_utf8.php Normal file → Executable file
View File

@ -42,7 +42,7 @@ class UTF8FixerUpper
{
$this->args = $args;
if (array_key_exists('max_date', $args)) {
if (!empty($args['max_date'])) {
$this->max_date = strftime('%Y-%m-%d %H:%M:%S', strtotime($args['max_date']));
} else {
$this->max_date = strftime('%Y-%m-%d %H:%M:%S', time());