From: Eric Helgeson Date: Thu, 20 Aug 2009 19:25:50 +0000 (-0500) Subject: var empty check did not function as expected. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8d35451823b01c074d5417a138d4968331a8130;p=quix0rs-gnu-social.git var empty check did not function as expected. made script executable --- diff --git a/scripts/fixup_utf8.php b/scripts/fixup_utf8.php old mode 100644 new mode 100755 index 8c9a9127fd..f952af8d39 --- a/scripts/fixup_utf8.php +++ b/scripts/fixup_utf8.php @@ -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());