FIX
This commit is contained in:
parent
79a94535fc
commit
287f888f3b
|
|
@ -113,7 +113,6 @@ class JsonController extends Controller
|
|||
}
|
||||
|
||||
$photos = $images = array();
|
||||
$ordering = $_POST['ordering'];
|
||||
if (empty($errors) && !App::$request['ajax'] && isset($_POST['id']) && (int) $_POST['id'])
|
||||
{
|
||||
$id = (int) $_POST['id'];
|
||||
|
|
@ -156,6 +155,7 @@ class JsonController extends Controller
|
|||
}
|
||||
|
||||
$resPhotos = array();
|
||||
$ordering = $_POST['ordering'];
|
||||
foreach ($ordering as $order)
|
||||
{
|
||||
$resPhotos[] = $order == 'FILE' ? array_shift($photos) : array_shift($images);
|
||||
|
|
|
|||
Loading…
Reference in New Issue