Make time optional in UserFollowerImporter
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 19 Aug 2013 12:39:41 +0000 (14:39 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 19 Aug 2013 12:39:41 +0000 (14:39 +0200)
wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php

index f8676c517284ab2c4a5b2eae8c5c8fe31f3bb8e2..f9162705c7a2d89d577e32f0af649c383f40074a 100644 (file)
@@ -26,6 +26,8 @@ class UserFollowerImporter extends AbstractImporter {
                $data['followUserID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['followUserID']);
                if (!$data['userID'] || !$data['followUserID']) return 0;
                
+               if (!isset($data['time'])) $data['time'] = 0;
+               
                $sql = "INSERT IGNORE INTO      wcf".WCF_N."_user_follow
                                                (userID, followUserID, time)
                        VALUES                  (?, ?, ?)";