]> git.mxchange.org Git - friendica.git/commitdiff
Fix batch action choice - All Actions for one contact were taken before
authorJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 14 Oct 2018 19:38:38 +0000 (21:38 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 14 Oct 2018 19:38:38 +0000 (21:38 +0200)
src/Module/Contact.php

index 30ad60d4b7537ca06bc5b612873a95bcad76bb93..db1675a7f83ec82ec92282611e453dc96034e640 100644 (file)
@@ -140,25 +140,25 @@ class Contact extends BaseModule
                $count_actions = 0;
                foreach ($orig_records as $orig_record) {
                        $contact_id = $orig_record['id'];
-                       if (defaults($_POST, 'contacts_batch_update')) {
+                       if (defaults($_POST, 'contacts_batch_update', '')) {
                                self::updateContactFromPoll($contact_id);
                                $count_actions++;
                        }
-                       if (defaults($_POST, 'contacts_batch_block')) {
+                       if (defaults($_POST, 'contacts_batch_block', '')) {
                                self::blockContact($contact_id);
                                $count_actions++;
                        }
-                       if (defaults($_POST, 'contacts_batch_ignore')) {
+                       if (defaults($_POST, 'contacts_batch_ignore', '')) {
                                self::ignoreContact($contact_id);
                                $count_actions++;
                        }
-                       if (defaults($_POST, 'contacts_batch_archive')) {
+                       if (defaults($_POST, 'contacts_batch_archive', '')) {
                                $r = self::archiveContact($contact_id, $orig_record);
                                if ($r) {
                                        $count_actions++;
                                }
                        }
-                       if (defaults($_POST, 'contacts_batch_drop')) {
+                       if (defaults($_POST, 'contacts_batch_drop', '')) {
                                self::dropContact($orig_record);
                                $count_actions++;
                        }