]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/ItemDeliveryData.php
codeblock updates
[friendica.git] / src / Model / ItemDeliveryData.php
index fa69af84197a3d940fcc9dcdb865076b8f7a4a21..1cd9c4f448acb897a8817bf507dfe05f12a6fdc1 100644 (file)
@@ -31,7 +31,7 @@ class ItemDeliveryData
        public static function extractFields(array &$fields)
        {
                $delivery_data = [];
-               foreach (ItemDeliveryData::FIELD_LIST as $key => $field) {
+               foreach (array_merge(ItemDeliveryData::FIELD_LIST, ItemDeliveryData::LEGACY_FIELD_LIST) as $key => $field) {
                        if (is_int($key) && isset($fields[$field])) {
                                // Legacy field moved from item table
                                $delivery_data[$field] = $fields[$field];
@@ -53,6 +53,7 @@ class ItemDeliveryData
         *
         * @param integer $item_id
         * @return bool
+        * @throws \Exception
         */
        public static function incrementQueueDone($item_id)
        {
@@ -65,6 +66,7 @@ class ItemDeliveryData
         * @param integer $item_id
         * @param array   $fields
         * @return bool
+        * @throws \Exception
         */
        public static function insert($item_id, array $fields)
        {
@@ -85,6 +87,7 @@ class ItemDeliveryData
         * @param integer $item_id
         * @param array   $fields
         * @return bool
+        * @throws \Exception
         */
        public static function update($item_id, array $fields)
        {
@@ -105,6 +108,7 @@ class ItemDeliveryData
         *
         * @param integer $item_id
         * @return bool
+        * @throws \Exception
         */
        public static function delete($item_id)
        {