]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
var empty check did not function as expected.
authorEric Helgeson <erichelgeson@gmail.com>
Thu, 20 Aug 2009 19:25:50 +0000 (14:25 -0500)
committerEric Helgeson <erichelgeson@gmail.com>
Thu, 20 Aug 2009 19:25:50 +0000 (14:25 -0500)
made script executable

scripts/fixup_utf8.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8c9a912..f952af8
@@ -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());