dever hace 4 años
padre
commit
3cc34ca772
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app/collection/lib/Content.php

+ 3 - 3
app/collection/lib/Content.php

@@ -23,9 +23,9 @@ class Content
                     if ($pic) {
                         $update['pic'] = Dever::load('upload/view')->get($pic, 'c', 1);
                     } else {
-                        $pic = Dever::param('text_c_0_i_pic', $data);
-                        if ($pic) {
-                            $update['pic'] = Dever::load('upload/view')->get($pic, 'c', 1);
+                        $text = Dever::param('text', $data);
+                        if ($text && isset($text[0]['pic']) && $text[0]['pic']) {
+                            $update['pic'] = Dever::load('upload/view')->get($text[0]['pic'], 'c', 1);
                         }
                     }
                 }